App Store RejectionGuideline 2.5.1 — Software Requirements
Your app is calling APIs Apple hasn't made public. Here's how to find and fix them.
Guideline 2.5.1 says apps may only use public APIs and must run on the currently shipping OS. Sometimes the private API call is in your own code, sometimes in a third-party SDK. Either way, you're responsible. This guide shows you how to track it down.
What the rejection notice says (paraphrased)
The notice cites Guideline 2.5.1 and says the app uses or references non-public APIs, usually naming the symbols or frameworks involved. Apple asks you to remove them, including any in third-party SDKs, and resubmit.
What this actually means
Apple only allows apps to call APIs documented in the official SDK. Private APIs are internal Apple frameworks not meant for third-party use. Using them risks crashes when Apple changes internal implementations, and more immediately, it gets your app rejected. The rejection message usually names the offending API.
What Apple needs to see
Complete removal of all referenced private or undocumented API calls from your binary
Updated third-party SDKs that have resolved any private API usage on their end
Replacement functionality built on documented public APIs only
A clean scan result from tools like MobSF or nm/grep on your binary before resubmission
1Note the exact API name Apple flagged in the rejection and search your entire codebase for it
2Run 'grep -r "APIName" .' across your project including Pods and frameworks to find every reference
3Update all third-party SDKs and CocoaPods to their latest versions — private API usage in dependencies is a common cause
4Replace any private API functionality with documented public equivalents, even if the public version is less capable
5Use the strings command on your compiled binary to scan for private API strings before resubmitting
While you're at it — make sure your required app pages are covered.
Fix this rejection, then make sure you're covered on the compliance side too. Every app needs a privacy policy link and a support URL, subscription apps need Terms of Use, and apps with sign-up need account deletion. A missing link means another rejection — just for a different reason.
Privacy Policy
Terms of Service
Support Page
Data Deletion Page
Common questions
The private API is in a third-party SDK I use — what do I do?
You're still responsible even if a dependency is the cause. Check if the SDK has a newer version that fixes the issue, report it to the SDK maintainer, or find an alternative library. The rejection notice usually names the API, so you can search the SDK's issue tracker to see if others have flagged it.
Can I appeal a 2.5.1 rejection?
Only if the API Apple flagged is actually public and the reviewer made a mistake. If the API is documented in Apple's developer documentation, include the documentation link in your appeal to the App Review Board. Otherwise, fix and resubmit — an appeal won't succeed if the private API use is real.
How do I prevent this from happening again in the future?
Add a pre-submission step to your CI pipeline that scans your built binary for known private API strings, for example with nm or strings. Also pin your SDK versions and read changelogs when updating dependencies.