Skip to content

"Could not build module Foundation" error when compiling for iOS with SDK 15.2 #5

@itsdarshankumar

Description

@itsdarshankumar

Godot version

3.4.1

System information

Mac 12.0.1

Issue description

Compiling for iOS using

scons p=iphone tools=no target=release arch=arm64

get lots of this kinds of errors.

In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.h:8:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/NSString+UserNotifications.h:8:9: fatal error: could not build module 'Foundation'
#import <Foundation/Foundation.h>

In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBase.h:8:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/usr/include/c++/v1/stdbool.h:28:15: fatal error: could not build module 'Darwin'
#include_next <stdbool.h>

Steps to reproduce

Compiling for iOS using

scons p=iphone tools=no target=release arch=arm64

Minimal reproduction project

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions