Detecting the use of private APIs

cocoa-touch, debugging, iphone, objective-c

Solution

I don't know anything about detecting the problem, but we encountered this problem recently; in our case it was caused by the Three20 library. If you are using it, see http://groups.google.com/group/three20/browse_thread/thread/c442af6e39a918b0/2375e7a158ee9d1b for a discussion/possible solutions.

Problem

I'm being rejected on the App Store for using private instance variables in my app. The ivars I am supposedly using are most definitely not being accessed in my code, but I am using one or two static libs from third parties. How would I test whether these could actually be the offenders? Update: Apple is accusing me (and 3rd party libs) of using private instance variables in the UITouch class, including - _locationInWindow - _tapCount - _previousLocationInWindow - _timestamp - _touchFlags - _phase - _window

Original source