简体   繁体   中英

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.

If you don't have a good reason to use "-undefined", you should get rid of this:

Project Settings -> Target -> Build Settings -> Other Linker Flags -> delete the "-undefined" entry.

Else disabling Bitcode is the way to go:

Project Settings -> Target -> Build Settings -> Enable Bitcode -> set to "No".

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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