permalink

Cannot call undocumented methods or use their names in categories

Apple has recently been testing submitted apps with a static analysis tool that detects whether an app calls any undocumented methods, even in public frameworks. The tool appears to detect only the undocumented methods’ names, so if you create a category method with the same name as an undocumented method and call it, the analyzer will flag that as an undocumented method call.

Any detected undocumented method calls result in rejection.

This has always been the documented policy, but in the past, undocumented calls were frequently slipped through approval if they weren’t obvious or went unnoticed by the reviewers. As a result, many apps in the Store use undocumented methods. This no longer appears to be possible for any new apps or updates.