Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用 xcode 7 和 cocoapods 来处理 parse 并且我的应用程序在模拟器上正确运行但是当我想在我的 iPhone5s 上测试它时出现此错误:ld: -undefined and -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) cannot be used together clang :错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)
删除“-undefined”链接器标志或禁用 Bitcode。
如果你没有充分的理由使用“-undefined”,你应该摆脱这个:
项目设置 -> 目标 -> 构建设置 -> 其他链接器标志 -> 删除“-undefined”条目。
否则禁用Bitcode是要走的路:
项目设置 -> 目标 -> 构建设置 -> 启用位码 -> 设置为“否”。