检测私有API的使用 [英] Detecting the use of private APIs
问题描述
我在App Store中被拒绝在我的应用程序中使用私有实例变量。我应该使用的ivars绝对不会在我的代码中被访问,但是我正在使用来自第三方的一个或两个静态库。我如何测试这些是否真的可以成为罪犯?
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?
更新:
苹果指责我(和第三方库)在UITouch类中使用私有实例变量,包括
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
- _locationInWindow
- _tapCount
- _previousLocationInWindow
- _timestamp
- _touchFlags
- _phase
- _window
推荐答案
我不知道有关检测问题,但是我们最近遇到这个问题;在我们这个例子中,它是由Three20图书馆造成的。如果您使用它,请参阅 http://groups.google.com/ group / three20 / browse_thread / thread / c442af6e39a918b0 / 2375e7a158ee9d1b 进行讨论/可能的解决方案。
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.
这篇关于检测私有API的使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!