非公共API使用:不允许应用访问UDID,也不得使用UIDevice的uniqueIdentifier方法

时间:2015-05-01 10:54:21

标签: ios objective-c iphone xcode

Xcode 6.3 中验证我的应用时,我收到以下错误:

**Non-public API usage:  Apps are not permitted to access the UDID and must not use the uniqueIdentifier method of UIDevice. Please update your apps and servers to associate users with the Vendor or Advertising identifiers introduced in iOS 6.**

没有第三方框架,例如 AdMob ,Google Google Analytics Flurry Facebook ,在应用程序中使用。仅使用内置框架。此外,应用程序中使用的框架是最新的。

我在终端中尝试了以下命令来查找使用 UDID 的类;

  找到。 | grep -v .svn | grep“.a”| grep -v“.app”| xargs grep   唯一标识符

但没有此类文件的列表。

我还在我的代码中搜索了**[[UIDevice currentDevice] uniqueIdentifier]**,但它没有在任何地方使用。

那我该怎么做才能解决这个问题呢?

1 个答案:

答案 0 :(得分:0)

来自Xcode的错误消息与您提出的错误消息不符。展开窗口以查找第二个项目符号中提到的选择器。我看到" addObserver:"在文中,但我们无法阅读其余内容。

如果您认为Apple出错,该消息还会指出如何联系Apple。你有没有联系他们?