Xcode says some of my pods are not PIEs, is this fine?

懵懂的女人 提交于 2019-12-04 19:00:29

问题


Today, after I uploaded an archive to the app store, Xcode shows me this warning and a few others (all are similar).

Here is one of them:

WARNING ITMS-90080: "The executable 'Payload/MyApp.app/Frameworks/EZLoadingActivity.framework' is not a Position Independent Executable. Please ensure that your build settings are configured to create PIE executables. For more information refer to Technical Q&A QA1788 - Building a Position Independent Executable in the iOS Developer Library." WARNING ITMS-90080: "The executable 'Payload/MyApp.app/Frameworks/EZLoadingActivity.framework' is not a Position Independent Executable. Please ensure that your build settings are configured to create PIE executables. For more information refer to Technical Q&A QA1788 - Building a Position Independent Executable in the iOS Developer Library."

So apparently this stuff is pretty important that it needs to be said twice.

EZLoadingActivity is a cocoapod that I'm using to write my app. Since it is a library, it cannot be run on its own. Therefore, I think it's ok for it to not be a Position Independent Executable. But when the warning showed up, I think something must have gone wrong.

I have seen another question whose OP's binary got rejected because of this error. So I'm afraid that my binary will also be rejected.

Will my binary be rejected? Is it fine to have frameworks that are not PIEs? I have other apps that use cocoapods but they don't have this warning when I upload them. This is the first time that I encountered such a warning? Is this serious? What can I do?


回答1:


It's a temporary iTunesConnect issue.

I've inspected older archives that passed without warning. Then, I found that all the embedded frameworks built don't have the PIE flag regardless of what build setting was used.

So, a missing PIE flag for frameworks should not be a reason for a warning.

I think that Apple changed the server side validation and introduced some bugs.



来源:https://stackoverflow.com/questions/37607821/xcode-says-some-of-my-pods-are-not-pies-is-this-fine

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!