A selector built from a name that starts with an underscore: how to pass Apple 2.5.1
What Apple checks
Guideline 2.5.1 says apps may only use public APIs. Your code builds a selector at run time from a name that starts with an underscore. If that method belongs to an Apple framework and isn’t documented, it’s a private API; if it’s your own, this is fine.
How Shipnod finds it
We look for the code patterns behind this rule in your source and show the file and line, so you can check the screen.
This check needs your source code (L4).
How to fix it
Check which class the selector calls. If it’s an Apple framework method that isn’t in Apple’s documentation, replace the call with a public API that does the same job. If it’s your own method, you can ignore this warning or rename the method without the underscore.
Related rules
- New apps with UIWebView aren’t accepted: use WKWebView
- Code that may detect App Review
- Over-the-air updates must not change features
- IPv4-only network calls: test on an IPv6-only network
Check your app for this and 75 other rules
Every feature is free during early access: the button creates your free account. Results are guidance; Apple and Google make the final review decision.
- Store
- Apple App Store
- Policy
- Guideline 2.5.1
- Evidence needed
- L4 source code
- Severity
- Warning
- Catalog version
- v2026.12.1