您的应用包含非公开的API使用情况 [英] Your app contains non-public API usage
问题描述
我正在尝试在App Store上提交我的应用程序,但是却收到此消息:
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
"XXX"-应用程序名称.
Where "XXX" -- application name.
有人可以帮我解决这个问题吗?
Can anybody help me with this issue?
推荐答案
私有API是不供外部开发人员使用的API.这是为了防止在更新SDK时破坏更改.
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.
不能保证私有API的行为.该方法可能会在平台的将来更新中删除.
The behavior of a private API is not guaranteed. The methods may be removed in the future updates of the platform.
如果您不打算通过Apple App Store进行发布,则可以在OSX和iOS应用程序中使用私有API,但是接下来,您又需要确保自己的应用程序不被即将到来的SDK/OS更新所破坏.
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.
您或您捆绑包中的某些第三方框架都在使用私有API
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.
这篇关于您的应用包含非公开的API使用情况的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!