苹果审核遇到一个大礼包
Guideline 2.5.1 - Performance - Software Requirements
Your app uses or references the following non-public APIs:
com.apple.springboard.lockcomplete
The use of non-public APIs is not permitted on the App Store because it can lead to a poor user experience should these APIs change.
Continuing to use or conceal non-public APIs in future submissions of this app may result in the termination of your Apple Developer account, as well as removal of all associated apps from the App Store.
意思是你项目中使用了私有的API,这种情况你得去项目中查看哪里使用了和这个有关的API。刚开始去各种论坛查找原因,给的一些文章全是废话,没有一点工匠精神。也使用了苹果推荐的工具otool
来检查,但是没检查出个什么所以然来。不过搜到一篇文章挺好的就是不会用他的工具,参考文章: 苹果iOS私有API检查工具
下面开始我的解决办法,仅供参考:
第一种方法就是苹果爸爸推荐的If you are using third-party libraries, please update to the most recent version of those libraries.
,意思是让你更新所有的第三方库。这种方法可以的。但是费工夫。
第二种就是我自己弄出来的,可能仅适用于我的项目当中。由于接手的项目中第三方库都是手动拖进去的,版本也很老,我把最主要的库更新到了最新的,然后在排查过程中发现使用了很早的友盟的库文件,包括分享和摇手机截屏的功能,
因为这个摇手机截屏功能在代码中没用到,所有我就把这个库模块给删除了,然后提审,审核通过了。。。竟然通过了!!