简体   繁体   English

Cocoapods的Xcode 7链接器错误

[英]Xcode 7 linker error with cocoapods

我使用xcode 7和cocoapods进行解析,并且我的应用程序可以在模拟器上正确运行,但是当我想在iPhone5s上对其进行测试时,会出现以下错误:ld:-undefined和-bitcode_bundle(Xcode设置ENABLE_BITCODE = YES)不能一起使用:错误:链接器命令失败,退出代码为1(使用-v查看调用)

Either remove the "-undefined" linker flag or disable Bitcode. 删除“ -undefined”链接器标志或禁用位码。

If you don't have a good reason to use "-undefined", you should get rid of this: 如果您没有充分的理由使用“ -undefined”,则应摆脱这种情况:

Project Settings -> Target -> Build Settings -> Other Linker Flags -> delete the "-undefined" entry. 项目设置->目标->构建设置->其他链接器标志->删除“ -undefined”条目。

Else disabling Bitcode is the way to go: 其他禁用位码的方法是:

Project Settings -> Target -> Build Settings -> Enable Bitcode -> set to "No". 项目设置->目标->构建设置->启用位码->设置为“否”。

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

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