- Guideline 2.5.1 - Performance - Software Requirements 最近上线遇到的关于苹果私有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 有最新的更新,及时将这些替换到最新
3.查找出现的 涉及私有api 问题的时候可以用终端输入如下命令

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

4.目前容易出现被拒的如下:

UIStatusBarDataNetworkItemView 
allInstalledApplications
defaultWorkspace
setTimeOut:
AMapSearchKit,
UICreateCGImageFromIOSurface
DisplayView  ,
cancelButton ,
getSnapshot: ,
terminateWithSuccess,
allowsAnyHTTPSCertificateForHost
 UIAlertSheetTextField, _UIAlertControllerTextField, UITableViewWrapperView, _UIQueuingScrollView, UISearchBarTextField, UISearchBarBackground, UIPeripheralHostView, UIKeyboard, UIInputSetContainerView, UIInputSetHostView, UIToolbarTextButton, UIToolbarButton, UITableViewCellContentView

你可能感兴趣的:(- Guideline 2.5.1 - Performance - Software Requirements 最近上线遇到的关于苹果私有api的问题)