由于我将 Xcode 更新为 Xcode 12,因此在构建时出现此错误:
Check dependencies
No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=arm64e armv7s arm64 arm7)
Run Code Online (Sandbox Code Playgroud)
我尝试了很多东西:
pod installBuild Active Architecture Only为No或Yes进行调试和发布不知道该怎么办。当我想在 iOS 14 上启动时会出现此错误,但在 iOS 13.7 中,此操作完美无缺。
- 编辑 -
我通过在“MyProject”和“MyProjectTest”中添加arm64 arm64e armv7 armv7s x86_64到 来解决我的问题,VALID_ARCHS现在它可以工作了。
经过大量测试,我的应用程序无法在iOS上运行。
我有这个错误:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_RCTImageLoader", referenced from:
objc-class-ref in libRCTImageResizer.a(RCTImageResizer.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Run Code Online (Sandbox Code Playgroud)
我用 :
react: 16.12.0
react-native: 0.60.6
Run Code Online (Sandbox Code Playgroud) 当我使用XCode或react-native run-ios在 iOS模拟器中启动我的应用程序时,它运行良好。
但是如果我在真实设备上做同样的事情,它就行不通了。我有这个错误:
Undefined symbols for architecture arm64:
"YGConfig::YGConfig(int (*)(YGConfig*, YGNode*, YGLogLevel, char const*, char*))", referenced from:
_YGConfigNew in libyoga.a(Yoga.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Run Code Online (Sandbox Code Playgroud)
更多信息:
react: 16.9.0
react-native: 0.60.5
Real device: iPad with iOS 12.4.4
Run Code Online (Sandbox Code Playgroud)
有人有解决方案吗?谢谢