被苹果连拒三次App-Prefs:root

2. 5 Performance: Software Requirements

Guideline 2.5.1 - Performance - Software Requirements Your app uses the "prefs:root=" non-public URL scheme, which is a private entity. 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.

Next Steps

To resolve this issue, please revise your app to provide the associated functionality using public APIs or remove the functionality using the "prefs:root" or "App-Prefs:root" URL scheme.

If there are no alternatives for providing the functionality your app requires, you can file an enhancement request.

大概意思就是:要解决这个问题,请修改应用程序,使用公共api提供相关功能,或者使用“prefs:root”或“app - prefs:root”URL方案删除相关功能。

1.需要你打开终端:

cd (你要查找项目的文件跟路径)

2.分别输入以下命令行,来找到使用了 (私有API) 的SDK或者.a的静态库:

(查找(遍历)所有的静态库.a  .svn  .app里面是否包含私有API的这个字段)

find . | grep -v .svn | grep ".a" | grep -v ".app" | xargs grep (私有API)


查找

因为输出结果太多,需要筛选

2.筛选。    grep -lr "App-Prefs:root" * | grep -v .svn | grep -v .md 


筛选

输出的结果就是含有这个私有API的地址,最后发现是在一个第三方.a中

你可能感兴趣的:(被苹果连拒三次App-Prefs:root)