[英]xCode failed linker
尝试在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)
我有最新版本的Xcode。 我曾尝试清理和删除派生数据,但这没有帮助。 我注意到互联网上的许多其他人也有类似的错误消息,但是解决方案并没有帮助我。
将AVFoundation和CoreLocation框架添加到目标中。 执行完此操作后,删除派生的数据,清理并重新生成。
另外,在构建设置下检查架构,并确保在有效架构下列出了armv7和armv7。 如果以上答案不能解决您的问题,请尝试添加或删除arm64。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.