I got an mail from App Store :
我收到了来自App Store的邮件:
Non-PIE Binary - The executable '***.app' is not a Position Independent Executable.
I set Dependent Code to NO. But I can't find Don't Create Position Independent Executables in Build Settings - Linking. There is only Other Linker Flags.
我将相关代码设置为NO。但是在构建设置中,我找不到不创建位置独立的可执行文件。只有其他链接器标志。
Where can I find this option?
我在哪里可以找到这个选项?
1 个解决方案
#1
0
You need to edit the Build Settings of the project target.
您需要编辑项目目标的构建设置。
Make sure that the IOS deployment target is over 4.3 or OSX is over 10.7. Generate Position-Dependent Code is set to "NO", and Don't Create Position Independent Executables is also "NO"
确保IOS部署目标超过4.3或OSX超过10.7。生成位置相关的代码被设置为“NO”,不创建位置独立的可执行文件也被设置为“NO”
If this doesn't fix you problem it might be that libraries that you have included in your project don't have these setting. What is the correct Xcode setting for Position Independent Executables might help.
如果这不能解决问题,那么项目中包含的库可能没有这些设置。对于位置无关的可执行文件,正确的Xcode设置可能会有所帮助。
#1
0
You need to edit the Build Settings of the project target.
您需要编辑项目目标的构建设置。
Make sure that the IOS deployment target is over 4.3 or OSX is over 10.7. Generate Position-Dependent Code is set to "NO", and Don't Create Position Independent Executables is also "NO"
确保IOS部署目标超过4.3或OSX超过10.7。生成位置相关的代码被设置为“NO”,不创建位置独立的可执行文件也被设置为“NO”
If this doesn't fix you problem it might be that libraries that you have included in your project don't have these setting. What is the correct Xcode setting for Position Independent Executables might help.
如果这不能解决问题,那么项目中包含的库可能没有这些设置。对于位置无关的可执行文件,正确的Xcode设置可能会有所帮助。