在我的Xcode命令行工具和MacOS升级后,我的项目不能使用Xcode构建。
运行npx react-native run-ios运行正常,可以唤醒模拟器并进行调试。
在Xcode上构建时,我收到以下错误:
Undefined symbols for architecture x86_64:
"___isOSVersionAtLeast", referenced from:
-[GDTCORApplication init] in libGoogleDataTransport.a(GDTCORPlatform.o)
___28-[GDTCORStorage storeEvent:]_block_invoke.22 in libGoogleDataTransport.a(GDTCORStorage.o)
-[GDTCORStorage appWillForeground:] in libGoogleDataTransport.a(GDTCORStorage.o)
___35-[GDTCORStorage appWillBackground:]_block_invoke in libGoogleDataTransport.a(GDTCORStorage.o)
-[GDTCORStorage appWillTerminate:] in libGoogleDataTransport.a(GDTCORStorage.o)
+[GULSecureCoding unarchivedObjectOfClasses:fromData:error:] in libGoogleUtilities.a(GULSecureCoding.o)
+[GULSecureCoding archivedDataWithRootObject:error:] in libGoogleUtilities.a(GULSecureCoding.o)
...
ld: symbol(s) not found for architecture x86_64
clang-7: error: linker command failed with exit code 1 (use -v to see invocation)发布于 2020-06-05 00:44:45
正如评论中所讨论的,这个问题是由使用旧的工具链引起的。
Firebase的最新版本至少需要Xcode 10.3。有关更多细节,请参阅https://github.com/firebase/firebase-ios-sdk/issues/5219
https://stackoverflow.com/questions/62185821
复制相似问题