Search code examples
iosiphonexcodellvmllvm-clang

XCode7 position independent code in the linker.


I have upgraded to XCode 7 and I am getting an error while linking

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

I changed the xcode setting to generate position dependent code but the linking still fails. The -no_pie still appears in the linker's output. How can I disable the -no_pie?

enter image description here


Solution

  • find the enable bitcode build settings and set to NO:

    Build settings