iOS - APP审核Guideline 2.5.1被拒,使用了私有API
Posted 公羽寒
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了iOS - APP审核Guideline 2.5.1被拒,使用了私有API相关的知识,希望对你有一定的参考价值。
最近ios 审核被拒,说是使用了私有API:com.apple.springboard.lockcomplete
具体内容如下:
发件人 Apple 2. 5 Performance: Software Requirements 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. Next Steps If you are using third-party libraries, please update to the most recent version of those libraries. If you do not have access to the libraries‘ source, you may be able to search the compiled binary using the "strings" or "otool" command line tools. The "strings" tool can output a list of the methods that the library calls and "otool -ov" will output the Objective-C class structures and their defined methods. These tools can help you narrow down where the problematic code resides. You could also use the "nm" tool to verify if any third-party libraries are calling these APIs. Resources For information on the "nm" tool, please review the "nm tool" Xcode manual page. If there are no alternatives for providing the functionality your app requires, you can file an enhancement request.
解决方法:
如果不确定是哪个第三方使用了
1. cd 到项目根目录 2. grep -R ‘com.apple.springboard.lockcomplete‘ * 他会检索出来,哪使用了
结果:
macdeMacBook-Pro:~ mac$ cd /Users/mac/Desktop/XingChangTongTrunk macdeMacBook-Pro:XingChangTongTrunk mac$ grep -R ‘com.apple.springboard.lockcomplete‘ * Binary file XingChangTong/XingChangTong/ThirdParty/huajiao_ios_sdk_v4.2.4/QHIVideoSDK.framework/QHIVideoSDK matches
最后发现是花椒的SDK:QHIVideoSDK,调用了系统的私有API,如果项目中没有使用到,建议删除试试
以上是关于iOS - APP审核Guideline 2.5.1被拒,使用了私有API的主要内容,如果未能解决你的问题,请参考以下文章
iOS 审核被拒记录 Guideline 2.5.1 HealthKit; 2.5.4 UIBackgroundModes audio; 1.5 Developer Information
iOS 审核被拒记录 Guideline 2.5.1 HealthKit; 2.5.4 UIBackgroundModes audio; 1.5 Developer Information
iOS 审核被拒记录 Guideline 2.5.1 HealthKit; 2.5.4 UIBackgroundModes audio; 1.5 Developer Information
苹果审核Guideline 2.1 - Performance - App Completeness
苹果审核被拒Guideline 1.2、 5.2.2、2.3.3、5.1.1、 5.1.2
App 提交审核被拒提示:Guideline 2.1 - Performance - App Completeness 的原因及解决