检测私有API的使用 [英] Detecting the use of private APIs

查看:114
本文介绍了检测私有API的使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在App Store上被拒绝在我的应用程序中使用私有实例变量。我应该使用的ivars绝对不是在我的代码访问,但我使用一个或两个静态库从第三方。



> Apple指责我(和第三方库)在UITouch类中使用私有实例变量,包括




  • _locationInWindow

  • _tapCount

  • _previousLocationInWindow

  • _timestamp

  • _touchFlags

  • _phase

  • _window


解决方案

我不知道任何关于检测问题,但我们最近遇到这个问题;在我们的案例是由Three20图书馆造成的。如果您使用它,请参阅 http://groups.google.com / group / three20 / browse_thread / thread / c442af6e39a918b0 / 2375e7a158ee9d1b 讨论/可能的解决方案。


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

解决方案

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆