简体   繁体   English

xCode链接器失败

[英]xCode failed linker

When trying to build my iOS app in Xcode, I get the following error message. 尝试在Xcode中构建我的iOS应用时,出现以下错误消息。

Undefined symbols for architecture i386: "OBJC_CLASS$UIPresentationController", referenced from: _OBJC_CLASS$SSSidebarPresentationController in libtools.a(SSSidebarPresentationController.o) "_OBJC_METACLASS$UIPresentationController", referenced from: _OBJC_METACLASS$_SSSidebarPresentationController in libtools.a(SSSidebarPresentationController.o) ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)

I have the latest version of Xcode. 我有最新版本的Xcode。 I have tried cleaning and deleting derived data but that did not help. 我曾尝试清理和删除派生数据,但这没有帮助。 I've noticed a lot of other people on the internet have similar error messages but the solutions did not help me. 我注意到互联网上的许多其他人也有类似的错误消息,但是解决方案并没有帮助我。

Add the AVFoundation and CoreLocation frameworks to your target. 将AVFoundation和CoreLocation框架添加到目标中。 After you do this, delete derived data, clean, and build again. 执行完此操作后,删除派生的数据,清理并重新生成。

Also, check in your architectures under build settings and make sure that you have armv7 and armv7s listed under valid architectures. 另外,在构建设置下检查架构,并确保在有效架构下列出了armv7和armv7。 If the above answer does not fix your problem then try adding or removing arm64. 如果以上答案不能解决您的问题,请尝试添加或删除arm64。

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

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