godotengine / godot-ios-plugins

MIT License
126 stars 48 forks source link

3.5 RC2 Error while trying to build for Simulator #34

Closed gumaciel closed 2 years ago

gumaciel commented 2 years ago

Hello, I was trying to build for the new version that will come out, 3.5, and I had an error while trying to build a plugin for Simulator x86_64, 3.5 RC2


g++ -o plugin/admob/src/main/admob.o -c -fomit-frame-pointer -O2 -ftree-vectorize -DNDEBUG -DNS_BLOCK_ASSERTIONS=1 -DDEBUG_ENABLED -DPTRCALL_ENABLED -DGLES_ENABLED -std=gnu++14 -DNEED_LONG_INT -DLIBYUV_DISABLE_NEON -DIPHONE_ENABLED -DUNIX_ENABLED -DCOREAUDIO_ENABLED -fmodules -fcxx-modules -mios-simulator-version-min=10.0 -fobjc-arc -fmessage-length=0 -fno-strict-aliasing -fdiagnostics-print-source-range-info -fdiagnostics-show-category=id -fdiagnostics-parseable-fixits -fpascal-strings -fblocks -fvisibility=hidden -MMD -MT dependencies -fno-exceptions -Wno-ambiguous-macro -Wall -Werror=return-type -arch x86_64 -isysroot -stdlib=libc++ -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk -DPTRCALL_ENABLED -I. -Igodot -Igodot/main -Igodot/core -Igodot/core/os -Igodot/core/platform -Igodot/platform/iphone -Igodot/modules -Igodot/scene -Igodot/servers -Igodot/drivers -Igodot/thirdparty -Fplugin/Pods/Google-Mobile-Ads-SDK/Frameworks/GoogleMobileAdsFramework-Current/GoogleMobileAds.xcframework/ios-arm64_x86_64-simulator -Fplugin/Pods/GoogleUserMessagingPlatform/Frameworks/Release/UserMessagingPlatform.xcframework/ios-arm64_x86_64-simulator plugin/admob/src/main/admob.mm
While building module 'Foundation' imported from plugin/admob/src/main/admob.mm:9:
While building module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
While building module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16:
In file included from <module-includes>:98:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/usr/include/wchar.h:91:
In file included from godot/core/os/time.h:34:
In file included from godot/core/class_db.h:34:
In file included from godot/core/method_bind.h:34:
In file included from godot/core/list.h:34:
In file included from godot/core/error_macros.h:34:
In file included from godot/core/safe_refcount.h:34:
godot/core/typedefs.h:114:1:{114:1-114:19}: error: templates must have C++ linkage [2]
 template <class T>
 ^~~~~~~~~~~~~~~~~~
<module-includes>:97:1: note: extern "C" language linkage specification begins here [2]
 extern "C" {
 ^

Link of source code: https://github.com/Poing-Studios/godot-admob-ios Godot source code: https://downloads.tuxfamily.org/godotengine/3.5/rc2/godot-3.5-rc2.tar.xz Command used: ./scripts/release_static_library.sh 3.x


I was wondering if I need to make any changes to my SCONS Script or is this a bug from Godot itself, in version 3.4 this doesn't happen.

akien-mga commented 2 years ago

Note that there's a bug with how I compiled 3.5 RC 2 templates for iOS, which will be fixed in the next build. I'm not sure it's what causes this issue though (the problem comes from compiling with Clang 14 which causes crashes).

If you want you can test with these fixed 3.5 RC 2 templates for iOS: https://downloads.tuxfamily.org/godotengine/testing/Godot_v3.5-rc2_export_templates.tpz

Or try with 3.5 RC 1, or 3.5 RC 3 once I release it.

Edit: But actually you're compiling from source so I think the above issue is not going to be involved at this stage.

naithar commented 2 years ago

I'm getting this compile error when trying to compile gamecenter plugin even on Godot 3.5 beta 1, with 3.4.4-stable everything is fine. Renaming .cpp files to .mm seems to be fixing the issue, but I'm not sure what causes the issue.

@gumaciel can you try using different Godot versions to check when the issue appeared for you?

akien-mga commented 2 years ago

CC @bruvzg

bruvzg commented 2 years ago

It seems to be caused by https://github.com/godotengine/godot/pull/54056, -Igodot/core/os + time.h file name is conflicting with system <time>. It should be renamed, or include path removed.

gumaciel commented 2 years ago

I'm getting this compile error when trying to compile gamecenter plugin even on Godot 3.5 beta 1, with 3.4.4-stable everything is fine. Renaming .cpp files to .mm seems to be fixing the issue, but I'm not sure what causes the issue.

@gumaciel can you try using different Godot versions to check when the issue appeared for you?

@naithar Hi i will do it tonight in a few hours

It seems to be caused by godotengine/godot#54056, -Igodot/core/os + time.h file name is conflicting with system <time>. It should be renamed, or include path removed.

@bruvzg The log was much bigger than the one I sent, tonight I'll send the complete log because maybe the problem isn't just in time.h

gumaciel commented 2 years ago

Hi guys, the issue started to appear on godot-3.5-beta1, on godot-3.4.4-stable it doesn't happen.


Something very strange happened, after I tested the older versions of 3.5 (beta), the RC2 version worked, then the bug magically disappeared.

In fact, now all versions of 3.5 (beta1,3,4,5 and RC1, RC2) are working, I really don't know what happened to get them working again.

I was simply deleting the 'godot' folder and then running the command scons platform=iphone target=debug just to generate the headers and then asking to give the build with the command ./scripts/release_static_library.sh 3.x, after I tested the 3.4.4 stable version, and went back to 3.5 RC2, the build worked for 3.5 RC2

@naithar could you test if the bug still happens with the gamecenter you mentioned?


I'm going to do some more tests here and then I'll come back to let you know if the bug really disappeared and my plugin is working for simulator

gumaciel commented 2 years ago

Update: After executing the command ./scripts/release_xcframework.sh 3.x the bug happened again, so the bug did not disappeared.

Edit: But I don't understand why it still works for ./scripts/release_static_library.sh 3.x

@bruvzg

full log:


scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
g++ -o plugin/admob/src/main/admob.o -c -fomit-frame-pointer -O2 -ftree-vectorize -DNDEBUG -DNS_BLOCK_ASSERTIONS=1 -DDEBUG_ENABLED -DPTRCALL_ENABLED -DGLES_ENABLED -std=gnu++14 -DNEED_LONG_INT -DLIBYUV_DISABLE_NEON -DIPHONE_ENABLED -DUNIX_ENABLED -DCOREAUDIO_ENABLED -fmodules -fcxx-modules -mios-simulator-version-min=10.0 -fobjc-arc -fmessage-length=0 -fno-strict-aliasing -fdiagnostics-print-source-range-info -fdiagnostics-show-category=id -fdiagnostics-parseable-fixits -fpascal-strings -fblocks -fvisibility=hidden -MMD -MT dependencies -fno-exceptions -Wno-ambiguous-macro -Wall -Werror=return-type -arch arm64 -isysroot -stdlib=libc++ -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk -DPTRCALL_ENABLED -I. -Igodot -Igodot/main -Igodot/core -Igodot/core/os -Igodot/core/platform -Igodot/platform/iphone -Igodot/modules -Igodot/scene -Igodot/servers -Igodot/drivers -Igodot/thirdparty -Fplugin/Pods/Google-Mobile-Ads-SDK/Frameworks/GoogleMobileAdsFramework-Current/GoogleMobileAds.xcframework/ios-arm64_x86_64-simulator -Fplugin/Pods/GoogleUserMessagingPlatform/Frameworks/Release/UserMessagingPlatform.xcframework/ios-arm64_x86_64-simulator plugin/admob/src/main/admob.mm
While building module 'Foundation' imported from plugin/admob/src/main/admob.mm:9:
While building module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
While building module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16:
In file included from <module-includes>:98:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/usr/include/wchar.h:91:
In file included from godot/core/os/time.h:34:
In file included from godot/core/class_db.h:34:
In file included from godot/core/method_bind.h:34:
In file included from godot/core/list.h:34:
In file included from godot/core/error_macros.h:34:
In file included from godot/core/safe_refcount.h:34:
godot/core/typedefs.h:73:1:{73:1-73:19}: error: templates must have C++ linkage [2]
 template <class T>
 ^~~~~~~~~~~~~~~~~~
<module-includes>:97:1: note: extern "C" language linkage specification begins here [2]
 extern "C" {
 ^
While building module 'Foundation' imported from plugin/admob/src/main/admob.mm:9:
While building module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
While building module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16:
In file included from <module-includes>:98:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/usr/include/wchar.h:91:
In file included from godot/core/os/time.h:34:
In file included from godot/core/class_db.h:34:
In file included from godot/core/method_bind.h:34:
In file included from godot/core/list.h:34:
In file included from godot/core/error_macros.h:34:
In file included from godot/core/safe_refcount.h:34:
godot/core/typedefs.h:139:1:{139:1-139:19}: error: templates must have C++ linkage [2]
 template <class T>
 ^~~~~~~~~~~~~~~~~~
<module-includes>:97:1: note: extern "C" language linkage specification begins here [2]
 extern "C" {
 ^
While building module 'Foundation' imported from plugin/admob/src/main/admob.mm:9:
While building module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
While building module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16:
In file included from <module-includes>:98:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/usr/include/wchar.h:91:
In file included from godot/core/os/time.h:34:
In file included from godot/core/class_db.h:34:
In file included from godot/core/method_bind.h:34:
In file included from godot/core/list.h:34:
In file included from godot/core/error_macros.h:34:
In file included from godot/core/safe_refcount.h:34:
godot/core/typedefs.h:206:1:{206:1-206:19}: error: templates must have C++ linkage [2]
 template <class T>
 ^~~~~~~~~~~~~~~~~~
<module-includes>:97:1: note: extern "C" language linkage specification begins here [2]
 extern "C" {
 ^
While building module 'Foundation' imported from plugin/admob/src/main/admob.mm:9:
While building module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
While building module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16:
In file included from <module-includes>:98:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/usr/include/wchar.h:91:
In file included from godot/core/os/time.h:34:
In file included from godot/core/class_db.h:34:
In file included from godot/core/method_bind.h:34:
In file included from godot/core/list.h:34:
In file included from godot/core/error_macros.h:34:
In file included from godot/core/safe_refcount.h:34:
godot/core/typedefs.h:284:1:{284:1-284:19}: error: templates must have C++ linkage [2]
 template <class T>
 ^~~~~~~~~~~~~~~~~~
<module-includes>:97:1: note: extern "C" language linkage specification begins here [2]
 extern "C" {
 ^
While building module 'Foundation' imported from plugin/admob/src/main/admob.mm:9:
While building module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
While building module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16:
While building module 'std' imported from godot/core/safe_refcount.h:38:
In file included from <module-includes>:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/usr/include/c++/v1/ctype.h:38:15: fatal error: cyclic dependency in module 'Darwin': Darwin -> std -> Darwin [4]
 #include_next <ctype.h>
               ^
While building module 'Foundation' imported from plugin/admob/src/main/admob.mm:9:
While building module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
While building module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16:
In file included from <module-includes>:98:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/usr/include/wchar.h:91:
In file included from godot/core/os/time.h:34:
In file included from godot/core/class_db.h:34:
In file included from godot/core/method_bind.h:34:
In file included from godot/core/list.h:34:
In file included from godot/core/error_macros.h:34:
godot/core/safe_refcount.h:38:10:{38:2-38:11}: fatal error: could not build module 'std' [4]
 #include <atomic>
  ~~~~~~~~^
While building module 'Foundation' imported from plugin/admob/src/main/admob.mm:9:
While building module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
In file included from <module-includes>:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16:10:{16:2-16:11}: fatal error: could not build module 'Darwin' [4]
 #include <sys/types.h>
  ~~~~~~~~^
While building module 'Foundation' imported from plugin/admob/src/main/admob.mm:9:
While building module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
While building module 'Dispatch' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:20:
In file included from <module-includes>:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/usr/include/dispatch/dispatch.h:25:10:{25:2-25:11}: fatal error: could not build module 'Darwin' [4]
 #include <Availability.h>
  ~~~~~~~~^
While building module 'Foundation' imported from plugin/admob/src/main/admob.mm:9:
While building module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
While building module 'Dispatch' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:20:
While building module 'os_object' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/usr/include/dispatch/dispatch.h:63:
In file included from <module-includes>:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/usr/include/os/object.h:25:10:{25:2-25:11}: fatal error: could not build module 'Darwin' [4]
 #include <Availability.h>
  ~~~~~~~~^
While building module 'Foundation' imported from plugin/admob/src/main/admob.mm:9:
While building module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
While building module 'Dispatch' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:20:
While building module 'os_workgroup' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/usr/include/dispatch/dispatch.h:64:
In file included from <module-includes>:2:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/usr/include/os/workgroup.h:29:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/usr/include/os/workgroup_base.h:8:10:{8:2-8:11}: fatal error: could not build module 'Darwin' [4]
 #include <sys/types.h>
  ~~~~~~~~^
While building module 'Foundation' imported from plugin/admob/src/main/admob.mm:9:
In file included from <module-includes>:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:10:{6:2-6:11}: fatal error: could not build module 'CoreFoundation' [4]
 #include <CoreFoundation/CoreFoundation.h>
  ~~~~~~~~^
While building module 'Foundation' imported from plugin/admob/src/main/admob.mm:9:
While building module 'ObjectiveC' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:6:
In file included from <module-includes>:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/usr/include/objc/./NSObjCRuntime.h:8:10:{8:2-8:11}: fatal error: could not build module 'Darwin' [4]
 #include <TargetConditionals.h>
  ~~~~~~~~^
While building module 'Foundation' imported from plugin/admob/src/main/admob.mm:9:
While building module 'Security' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLCredential.h:9:
In file included from <module-includes>:2:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/Security.framework/Headers/Security.h:27:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/Security.framework/Headers/SecBase.h:27:10:{27:2-27:11}: fatal error: could not build module 'Darwin' [4]
 #include <TargetConditionals.h>
  ~~~~~~~~^
While building module 'Foundation' imported from plugin/admob/src/main/admob.mm:9:
While building module 'CoreServices' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLError.h:15:
In file included from <module-includes>:2:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:9:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/CoreServices.framework/Headers/UTCoreTypes.h:19:10:{19:2-19:11}: fatal error: could not build module 'CoreFoundation' [4]
 #include <CoreFoundation/CoreFoundation.h>
  ~~~~~~~~^
plugin/admob/src/main/admob.mm:9:9:{9:2-9:10}: fatal error: could not build module 'Foundation' [4]
 #import <Foundation/Foundation.h>
  ~~~~~~~^
While building module 'AdSupport' imported from plugin/admob/src/main/admob.mm:10:
In file included from <module-includes>:2:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/AdSupport.framework/Headers/AdSupport.h:12:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/AdSupport.framework/Headers/ASIdentifierManager.h:9:9:{9:2-9:10}: fatal error: could not build module 'Foundation' [4]
 #import <Foundation/Foundation.h>
  ~~~~~~~^
While building module 'CommonCrypto' imported from plugin/admob/src/main/admob.mm:11:
In file included from <module-includes>:2:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/usr/include/CommonCrypto/CommonCrypto.h:27:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/usr/include/CommonCrypto/CommonCryptor.h:80:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/usr/include/CommonCrypto/CommonCryptoError.h:34:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/usr/include/c++/v1/stdint.h:123:15:{123:2-123:16}: fatal error: could not build module 'std' [4]
 #include_next <stdint.h>
  ~~~~~~~~~~~~~^
While building module 'UserMessagingPlatform' imported from plugin/admob/src/main/admob.mm:12:
While building module 'UIKit' imported from plugin/Pods/GoogleUserMessagingPlatform/Frameworks/Release/UserMessagingPlatform.xcframework/ios-arm64_x86_64-simulator/UserMessagingPlatform.framework/Headers/UMPConsentInformation.h:1:
In file included from <module-includes>:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8:9:{8:2-8:10}: fatal error: could not build module 'Foundation' [4]
 #import <Foundation/Foundation.h>
  ~~~~~~~^
While building module 'UserMessagingPlatform' imported from plugin/admob/src/main/admob.mm:12:
While building module 'UIKit' imported from plugin/Pods/GoogleUserMessagingPlatform/Frameworks/Release/UserMessagingPlatform.xcframework/ios-arm64_x86_64-simulator/UserMessagingPlatform.framework/Headers/UMPConsentInformation.h:1:
While building module 'CoreGraphics' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIBezierPath.h:10:
In file included from <module-includes>:2:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h:8:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBase.h:8:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/usr/include/c++/v1/stdbool.h:28:15:{28:2-28:16}: fatal error: could not build module 'Darwin' [4]
 #include_next <stdbool.h>
  ~~~~~~~~~~~~~^
While building module 'UserMessagingPlatform' imported from plugin/admob/src/main/admob.mm:12:
While building module 'UIKit' imported from plugin/Pods/GoogleUserMessagingPlatform/Frameworks/Release/UserMessagingPlatform.xcframework/ios-arm64_x86_64-simulator/UserMessagingPlatform.framework/Headers/UMPConsentInformation.h:1:
While building module 'CoreImage' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIColor.h:13:
In file included from <module-includes>:2:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.h:8:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImageDefines.h:10:10:{10:2-10:11}: fatal error: could not build module 'Darwin' [4]
 #include <TargetConditionals.h>
  ~~~~~~~~^
While building module 'UserMessagingPlatform' imported from plugin/admob/src/main/admob.mm:12:
While building module 'UIKit' imported from plugin/Pods/GoogleUserMessagingPlatform/Frameworks/Release/UserMessagingPlatform.xcframework/ios-arm64_x86_64-simulator/UserMessagingPlatform.framework/Headers/UMPConsentInformation.h:1:
While building module 'CoreImage' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIColor.h:13:
While building module 'CoreVideo' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CIImage.h:10:
In file included from <module-includes>:1:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CoreVideo.h:16:10:{16:2-16:11}: fatal error: could not build module 'Darwin' [4]
 #include <TargetConditionals.h>
  ~~~~~~~~^
While building module 'UserMessagingPlatform' imported from plugin/admob/src/main/admob.mm:12:
While building module 'UIKit' imported from plugin/Pods/GoogleUserMessagingPlatform/Frameworks/Release/UserMessagingPlatform.xcframework/ios-arm64_x86_64-simulator/UserMessagingPlatform.framework/Headers/UMPConsentInformation.h:1:
While building module 'CoreImage' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIColor.h:13:
While building module 'ImageIO' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CIImage.h:11:
In file included from <module-includes>:2:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/ImageIO.framework/Headers/ImageIO.h:10:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/ImageIO.framework/Headers/ImageIOBase.h:11:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/usr/include/c++/v1/stdbool.h:28:15:{28:2-28:16}: fatal error: could not build module 'Darwin' [4]
 #include_next <stdbool.h>
  ~~~~~~~~~~~~~^
While building module 'UserMessagingPlatform' imported from plugin/admob/src/main/admob.mm:12:
While building module 'UIKit' imported from plugin/Pods/GoogleUserMessagingPlatform/Frameworks/Release/UserMessagingPlatform.xcframework/ios-arm64_x86_64-simulator/UserMessagingPlatform.framework/Headers/UMPConsentInformation.h:1:
While building module 'CoreImage' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIColor.h:13:
While building module 'IOSurface' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CIImage.h:16:
In file included from <module-includes>:1:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceBase.h:12:10:{12:2-12:11}: fatal error: could not build module 'Darwin' [4]
 #include <sys/cdefs.h>
  ~~~~~~~~^
While building module 'UserMessagingPlatform' imported from plugin/admob/src/main/admob.mm:12:
While building module 'UIKit' imported from plugin/Pods/GoogleUserMessagingPlatform/Frameworks/Release/UserMessagingPlatform.xcframework/ios-arm64_x86_64-simulator/UserMessagingPlatform.framework/Headers/UMPConsentInformation.h:1:
While building module 'CoreImage' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIColor.h:13:
While building module 'Metal' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CIRenderDestination.h:18:
In file included from <module-includes>:2:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.h:8:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLDefines.h:8:9:{8:2-8:10}: fatal error: could not build module 'Darwin' [4]
 #import <os/availability.h>
  ~~~~~~~^
While building module 'UserMessagingPlatform' imported from plugin/admob/src/main/admob.mm:12:
While building module 'UIKit' imported from plugin/Pods/GoogleUserMessagingPlatform/Frameworks/Release/UserMessagingPlatform.xcframework/ios-arm64_x86_64-simulator/UserMessagingPlatform.framework/Headers/UMPConsentInformation.h:1:
While building module 'QuartzCore' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:10:
In file included from <module-includes>:1:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.h:9:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CoreAnimation.h:9:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CABase.h:11:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/usr/include/c++/v1/stdbool.h:28:15:{28:2-28:16}: fatal error: could not build module 'Darwin' [4]
 #include_next <stdbool.h>
  ~~~~~~~~~~~~~^
While building module 'UserMessagingPlatform' imported from plugin/admob/src/main/admob.mm:12:
While building module 'UIKit' imported from plugin/Pods/GoogleUserMessagingPlatform/Frameworks/Release/UserMessagingPlatform.xcframework/ios-arm64_x86_64-simulator/UserMessagingPlatform.framework/Headers/UMPConsentInformation.h:1:
While building module 'QuartzCore' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:10:
While building module 'OpenGLES' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAEAGLLayer.h:7:
In file included from <module-includes>:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/EAGL.h:8:10:{8:2-8:11}: fatal error: could not build module 'Foundation' [4]
 #include <Foundation/Foundation.h>
  ~~~~~~~~^
While building module 'UserMessagingPlatform' imported from plugin/admob/src/main/admob.mm:12:
While building module 'UIKit' imported from plugin/Pods/GoogleUserMessagingPlatform/Frameworks/Release/UserMessagingPlatform.xcframework/ios-arm64_x86_64-simulator/UserMessagingPlatform.framework/Headers/UMPConsentInformation.h:1:
While building module 'FileProvider' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSFileProviderExtension.h:15:
In file included from <module-includes>:1:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/FileProvider.framework/Headers/FileProvider.h:16:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/FileProvider.framework/Headers/NSFileProviderDomain.h:8:9:{8:2-8:10}: fatal error: could not build module 'Foundation' [4]
 #import <Foundation/Foundation.h>
  ~~~~~~~^
While building module 'UserMessagingPlatform' imported from plugin/admob/src/main/admob.mm:12:
While building module 'UIKit' imported from plugin/Pods/GoogleUserMessagingPlatform/Frameworks/Release/UserMessagingPlatform.xcframework/ios-arm64_x86_64-simulator/UserMessagingPlatform.framework/Headers/UMPConsentInformation.h:1:
While building module 'UserNotifications' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UNNotificationResponse+UIKitAdditions.h:10:
In file included from <module-includes>:1:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.h:8:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/NSString+UserNotifications.h:8:9:{8:2-8:10}: fatal error: could not build module 'Foundation' [4]
 #import <Foundation/Foundation.h>
  ~~~~~~~^
While building module 'UserMessagingPlatform' imported from plugin/admob/src/main/admob.mm:12:
In file included from <module-includes>:1:
In file included from plugin/Pods/GoogleUserMessagingPlatform/Frameworks/Release/UserMessagingPlatform.xcframework/ios-arm64_x86_64-simulator/UserMessagingPlatform.framework/Headers/UserMessagingPlatform.h:1:
In file included from plugin/Pods/GoogleUserMessagingPlatform/Frameworks/Release/UserMessagingPlatform.xcframework/ios-arm64_x86_64-simulator/UserMessagingPlatform.framework/Headers/UMPConsentForm.h:1:
plugin/Pods/GoogleUserMessagingPlatform/Frameworks/Release/UserMessagingPlatform.xcframework/ios-arm64_x86_64-simulator/UserMessagingPlatform.framework/Headers/UMPConsentInformation.h:1:9:{1:2-1:10}: fatal error: could not build module 'UIKit' [4]
 #import <UIKit/UIKit.h>
  ~~~~~~~^
While building module 'GoogleMobileAds' imported from plugin/admob/src/main/admob.h:11:
In file included from <module-includes>:1:
plugin/Pods/Google-Mobile-Ads-SDK/Frameworks/GoogleMobileAdsFramework-Current/GoogleMobileAds.xcframework/ios-arm64_x86_64-simulator/GoogleMobileAds.framework/Headers/GoogleMobileAds.h:7:9:{7:2-7:10}: fatal error: could not build module 'Foundation' [4]
 #import <Foundation/Foundation.h>
  ~~~~~~~^
While building module 'AudioUnit' imported from godot/drivers/coreaudio/audio_driver_coreaudio.h:38:
While building module 'AudioToolbox' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/AudioUnit.framework/Headers/AUComponent.h:1:
In file included from <module-includes>:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioToolbox.h:14:10:{14:2-14:11}: fatal error: could not build module 'Darwin' [4]
 #include <Availability.h>
  ~~~~~~~~^
While building module 'AudioUnit' imported from godot/drivers/coreaudio/audio_driver_coreaudio.h:38:
While building module 'AudioToolbox' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/AudioUnit.framework/Headers/AUComponent.h:1:
While building module 'CoreAudioTypes' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioComponent.h:169:
In file included from <module-includes>:1:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/CoreAudioTypes.framework/Headers/CoreAudioTypes.h:8:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/CoreAudioTypes.framework/Headers/CoreAudioBaseTypes.h:17:10:{17:2-17:11}: fatal error: could not build module 'Darwin' [4]
 #include <TargetConditionals.h>
  ~~~~~~~~^
While building module 'AudioUnit' imported from godot/drivers/coreaudio/audio_driver_coreaudio.h:38:
While building module 'AudioToolbox' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/AudioUnit.framework/Headers/AUComponent.h:1:
While building module 'CoreMIDI' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AUAudioUnit.h:16:
In file included from <module-includes>:2:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/CoreMIDI.framework/Headers/CoreMIDI.h:18:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/CoreMIDI.framework/Headers/MIDIServices.h:73:10:{73:2-73:11}: fatal error: could not build module 'Darwin' [4]
 #include <Availability.h>
  ~~~~~~~~^
While building module 'AudioUnit' imported from godot/drivers/coreaudio/audio_driver_coreaudio.h:38:
In file included from <module-includes>:2:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/AudioUnit.framework/Headers/AudioUnit.h:11:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/AudioUnit.framework/Headers/AUComponent.h:1:10:{1:2-1:11}: fatal error: could not build module 'AudioToolbox' [4]
 #include <AudioToolbox/AUComponent.h>
  ~~~~~~~~^
While building module 'GameController' imported from godot/platform/iphone/joypad_iphone.h:31:
In file included from <module-includes>:1:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk/System/Library/Frameworks/GameController.framework/Headers/GameController.h:8:9:{8:2-8:10}: fatal error: could not build module 'Foundation' [4]
 #import <Foundation/Foundation.h>
  ~~~~~~~^
35 errors generated.
scons: *** [plugin/admob/src/main/admob.o] Error 1
scons: building terminated because of errors.
fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: can't open input file: ./bin/libadmob.arm64-simulator.release_debug.a (No such file or directory)
bruvzg commented 2 years ago

full log:

The rest of the errors seems to direct consequence of inability to build Foundation, which fails due to time.h.

gumaciel commented 2 years ago

I was wondering if this issue shouldn't be opened on Godot's main repository due seems to be a problem of some class of Godot, should we transfer the issue to other repository?

gumaciel commented 2 years ago

Just tested on 3.5 RC4 and still the same, i will open an issue on Godot's main repository to track this issue easier

akien-mga commented 2 years ago

Superseded by https://github.com/godotengine/godot/issues/62162