简体   繁体   English

错误:架构的未定义符号

[英]Error : Undefined symbols for architecture

I am getting below error. 我正在错误以下。 It was working fine and I don't have any idea about what caused this issue. 一切正常,我对导致此问题的原因一无所知。

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)

I tried removing and adding CrashReporter from and to project. 我尝试从项目中删除CrashReporter并将其添加到项目中。

Select your project, go to Build Settings and have a look at the Architectures . 选择您的项目,转到“ Build Settings然后查看“ Architectures You should delete arm64 from the Architectures and also from Valid Architectures and Build the app again. 您应该从Architectures以及Valid Architectures删除arm64 ,然后再次构建应用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM