简体   繁体   English

Xcode 7.1中架构arm64的未定义符号

[英]Undefined symbols for architecture arm64 in Xcode 7.1

Hi when I try to run my app in Xcode 7.1 on device , I am getting the following error. 嗨,当我尝试在设备上的Xcode 7.1中运行我的应用程序时,我收到以下错误。 Can you pls let me know the issue. 你能告诉我这个问题吗? It runs fine on simulator. 它在模拟器上运行良好。

Undefined symbols for architecture arm64: "_OBJC_CLASS_$_ADAuthenticationContext", referenced from: objc-class-ref in LoadingViewController.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation) 架构arm64的未定义符号:“_ OBJC_CLASS _ $ _ ADAuthenticationContext”,引自:LoadingViewController.o中的objc-class-ref ld:未找到架构arm64 clang的符号:错误:链接器命令失败,退出代码为1(使用-v看看调用)

It could be that library which consists of the class ADAuthenticationContext isn't compiled for arm64 architecture, only for armv7 / armv7s . 可能是由ADAuthenticationContext类组成的库不是为arm64架构编译的,仅用于armv7 / armv7s

You can disable arm64 support in your project by modifying Supported Architectures and Valid Architectures in Build Settings , then for this case compilation and linking should work. 您可以通过修改Build Settings中的 Supported ArchitecturesValid Architectures来禁用项目中的arm64支持,然后对于这种情况,编译和链接应该可行。

Note that App Store won't accept your app without arm64 support. 请注意,如果没有arm64支持,App Store将不接受您的应用。

Try to update your library or recompile it by yourself properly if possible. 尝试更新您的库或尽可能正确地重新编译它。

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

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