我尝试使用 cli 构建我的 React Native 应用程序,并出现此错误日志。Xcode 构建稳定,没有发生错误。
这是日志的一部分:
2 errors generated.
While building module 'Foundation' imported from /Users/omerkocer/tekvetek/ios/Pods/Target Support Files/Pods-tekvetek_RN-OneSignalNotificationServiceExtension/Pods-tekvetek_RN-OneSignalNotificationServiceExtension-dummy.m:1:
While building module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.0.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/iPhoneSimulator16.0.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16:
In file included from <module-includes>:23:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.0/include/stdatomic.h:24:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.0/include/stddef.h:102:10: fatal error: could not build module '_Builtin_stddef_max_align_t'
#include "__stddef_max_align_t.h"
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
5 errors generated.
While building module 'Foundation' imported from /Users/omerkocer/tekvetek/ios/Pods/Target Support Files/Pods-tekvetek_RN-OneSignalNotificationServiceExtension/Pods-tekvetek_RN-OneSignalNotificationServiceExtension-dummy.m:1:
While building module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
In file included from <module-includes>:1:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.0.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16:10: …Run Code Online (Sandbox Code Playgroud)