Reputation: 4948
When I try to execute my app from XCode 7 on my iPhone 4 I get the ld error: ld: -no_pie and -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) cannot be used together
What is that -no_pie, and how to fix the problem, without of course disabling bitcode?
When I compile for the iPhone 6 simulator, everything goes without this issue altogether.
Upvotes: 2
Views: 1599
Reputation: 4948
The issue was due to the Generate position-dependent code configuration to YES in the PROJECT settings, which apparently overrode the configuration in the targets.
Upvotes: 0
Reputation: 50099
no_pie makes clang generate position-independent code AFAICS. try to specify -pie to the linker
see also: Can I make clang generate absolute addresses for function pointers?
Upvotes: 0