我收到了来自 App Store 的邮件:
Non-PIE Binary - The executable '***.app' is not a Position Independent Executable.
我将 Dependent Code 设置为NO。但我在构建设置 - 链接中找不到不要创建与位置无关的可执行文件。只有其他链接器标志。
我在哪里可以找到这个选项?
我收到了来自 App Store 的邮件:
Non-PIE Binary - The executable '***.app' is not a Position Independent Executable.
我将 Dependent Code 设置为NO。但我在构建设置 - 链接中找不到不要创建与位置无关的可执行文件。只有其他链接器标志。
我在哪里可以找到这个选项?
您需要编辑项目目标的构建设置。
确保 IOS 部署目标超过 4.3 或 OSX 超过 10.7。Generate Position-Dependent Code 设置为“NO”,并且 Don't Create Position Independent Executables 也设置为“NO”
如果这不能解决您的问题,则可能是您在项目中包含的库没有这些设置。 Position Independent Executables 的正确 Xcode 设置是什么可能会有所帮助。