简体   繁体   English

Xcode-Apple Mach-O链接器错误-更改xcode版本时,链接器命令失败,退出代码为1

[英]Xcode - Apple Mach-O Linker Error - Linker command failed with exit code 1 when change xcode version

While updating my iOS Developer Course to Xcode 7.2, I've found that when opening Xcode 6.4 apps in Xcode 7.2, even when going through the upgrader, I'm left with the error "does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture armv7 clang: error linker command failed with exit code 1 (use -v to see invocation)' 将我的iOS开发人员课程更新为Xcode 7.2时,我发现在Xcode 7.2中打开Xcode 6.4应用程序时,即使通过升级程序,也会出现错误“不包含位码。您必须使用位码重建它”启用(Xcode设置ENABLE_BITCODE),从供应商获取更新的库或禁用此目标的位代码。对于体系结构armv7铛:错误链接器命令失败,退出代码为1(使用-v查看调用)'

and i have searched in "internet" and so many peoples saying that 我已经在“互联网”中搜索了,很多人说

Clearing the "Test Host" values in the Build Settings of my "Tests" target see my below image but "how can i clear them" and how can i fix this issue 清除“测试”目标的“构建设置”中的“测试主机”值时,请参见下图,但“如何清除它们”以及如何解决此问题

在此处输入图片说明

Search your target's Build Settings for "bitcode". 在目标的“构建设置”中搜索“位码”。 Change the setting for Enable Bitcode to No. 将启用位码的设置更改为否。

Or you can do what the error suggests: "obtain an updated library from the vendor". 或者您可以执行错误提示的操作:“从供应商那里获取更新的库”。

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

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