简体   繁体   中英

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

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.

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?

该问题是由于在PROJECT设置中将生成与位置相关的代码配置为YES所致,这显然覆盖了目标中的配置。

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