错误:架构的未定义符号
Posted
技术标签:
【中文标题】错误:架构的未定义符号【英文标题】:Error : Undefined symbols for architecture 【发布时间】:2014-06-21 12:34:51 【问题描述】:我遇到了错误。它工作正常,我不知道是什么导致了这个问题。
ld: warning: ignoring file /Users/akashpatel/Developer/ios_development/FantasyCricket/Fantasy_cricket/Library/JMC/JMCClasses/Libraries/CrashReporter.framework/CrashReporter, missing required architecture arm64 in file /Users/akashpatel/Developer/iOS_development/FantasyCricket/Fantasy_cricket/Library/JMC/JMCClasses/Libraries/CrashReporter.framework/CrashReporter (3 slices)
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_PLCrashReport", referenced from:
objc-class-ref in CrashReporter.o
"_OBJC_CLASS_$_PLCrashReporter", referenced from:
objc-class-ref in CrashReporter.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我尝试从项目中删除和添加CrashReporter
。
【问题讨论】:
好像你的 CrashReporter 不支持 arm64 架构。尝试从“构建设置”选项卡的“有效架构”列表中删除 arm64。 这可能会有所帮助***.com/questions/22331908/… 【参考方案1】:选择您的项目,转到Build Settings
并查看Architectures
。您应该从 Architectures
和 Valid Architectures
中删除 arm64 并再次构建应用程序。
【讨论】:
以上是关于错误:架构的未定义符号的主要内容,如果未能解决你的问题,请参考以下文章