Reputation: 3397
After I fixed some bugs and refactored my project which has been release on App Store, it fails to distribute. The Xcode shows the following error message:
- 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: UICreateCGImageFromIOSurface
XXX is the app name.
I've search the entire project, and didn't find any this keyword (UICreateCGImageFromIOSurface). How can I fix this?
Upvotes: 11
Views: 7085
Reputation: 581
cordova plugin rm cordova-plugin-ionic-webview
cordova plugin add [email protected]
Upvotes: 0
Reputation: 594
Upvotes: 0
Reputation: 1093
Double check any third-party libraries you are using in your project
I was facing the issue and after checking my pods file, I found that Look Back - Framwork which is available for debug builds only as for as I know. So removing that fixed the issue. Successfully submitted app through Xcode 6.1 for Apple Testflight beta testing :)
Upvotes: 0
Reputation: 10014
You app contains code not only from sources, but from all statically linked libraries. You have to check all of those for containing private call. Looks like at least Reveal library contains it.
Upvotes: 1
Reputation: 17186
Remove Reveal.framework from your project. This should not be linked in release mode of your binary.
Upvotes: 37