- Guideline 2.5.1 - Performance - Software Requirements 最近上線遇到的關(guān)于蘋果私有api的問題

  • Guideline 2.5.1 - Performance - Software Requirements

    Your app uses or references the following non-public APIs:

    UIToolbarButton, UISearchBarTextField, UIPeripheralHostView

    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.

    Next Steps

    To resolve this issue, please revise your app to remove any non-public APIs. If you have defined methods in your source code with the same names as the above-mentioned APIs, we suggest altering your method names so that they no longer collide with Apple's private APIs to avoid your app being flagged in future submissions.

    Additionally, 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.所有的第三方庫更新到最新
2.最近IQKeyboardManager SvProgressHud 有最新的更新,及時(shí)將這些替換到最新
3.查找出現(xiàn)的 涉及私有api 問題的時(shí)候可以用終端輸入如下命令

grep -r 涉及的api名字 工程所在的文件地址
例如: grep -r UIPeripheralHostView /Users/xiaoMing/Desktop/development/app_ios 

4.目前容易出現(xiàn)被拒的如下:

UIStatusBarDataNetworkItemView 
allInstalledApplications
defaultWorkspace
setTimeOut:
AMapSearchKit,
UICreateCGImageFromIOSurface
DisplayView  ,
cancelButton ,
getSnapshot: ,
terminateWithSuccess,
allowsAnyHTTPSCertificateForHost
 UIAlertSheetTextField, _UIAlertControllerTextField, UITableViewWrapperView, _UIQueuingScrollView, UISearchBarTextField, UISearchBarBackground, UIPeripheralHostView, UIKeyboard, UIInputSetContainerView, UIInputSetHostView, UIToolbarTextButton, UIToolbarButton, UITableViewCellContentView
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容