问题
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