XCode7 链接器中的位置独立代码。

XCode7 position independent code in the linker.

我已升级到 XCode 7,但在链接时出现错误

ld: -no_pie and -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) cannot be used together

我更改了 xcode 设置以生成位置相关代码,但链接仍然失败。 -no_pie 仍然出现在链接器的输出中。如何禁用 -no_pie?

找到 enable bitcode 构建设置并设置为 NO: