Your app contains non-public API usage

偶尔善良 提交于 2019-12-20 01:59:20

问题


I'm trying to submit my app on the App Store but I'm getting this msg:

Your app contains non-public API usage. Please review the errors, correct them, and resubmit your application.
The app references non-public symbols in Payload/XXX.app/XXX: CFUserNotificationDisplayNotice

Where "XXX" -- application name.

Can anybody help me with this issue?


回答1:


A private API is an API that is not intended to be used by outside developers. This is to prevent breaking changes when the SDK is updated.

The behavior of a private API is not guaranteed. The methods may be removed in the future updates of the platform.

You can use the private API's in you OSX and iOS apps if you don't intend to release through Apple App Store, but then, again you yourself need to make sure that your app is not broken by the comming SDK/OS updates.

Either you or some third party framework in your bundle is using private APIs

Remove the signature mentioned from the code and you should be fine.



来源:https://stackoverflow.com/questions/16773841/your-app-contains-non-public-api-usage

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!