ios - 非公开 API 使用 : Apps are not permitted to access the UDID and must not use the uniqueIdentifier method of UIDevice

标签 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 AnalyticsFlurryFacebook,在应用程序中使用。仅使用内置框架。此外,应用中使用的框架是最新的。

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

find . | grep -v .svn | grep ".a" | grep -v ".app" | xargs grep uniqueIdentifier

但没有此类文件的列表。

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

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

最佳答案

您来自 Xcode 的错误消息与您询问的错误消息不匹配。展开窗口以查找第二个项目符号中提到的选择器。我在文本中看到“addObserver:”,但我们无法阅读其余部分。

如果您认为 Apple 有误,该消息还会向您指出如何联系 Apple。你联系过他们吗?

关于ios - 非公开 API 使用 : Apps are not permitted to access the UDID and must not use the uniqueIdentifier method of UIDevice,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29985601/

相关文章:

objective-c - AppleScript:调用 Shell 脚本的处理程序结果为 "Unrecognized function fileHandleForReading"

ios - UIPopoverPresentationController 在 iPhone 上显示全屏模式

iphone - Xcode 或 iOS 不会在 iPad 上使用我的 Icon-72.png

iphone - iOS 原始视频捕获 - 从哪里开始?

ios - 如何调用返回的函数(发件人 : UIDatePicker) - Swift

ios - Swift:比较隐式解包的可选结果为 "unexpectedly found nil while unwrapping an Optional values"

ios - 遇到 (ARC) 语义问题?

ios - 如何在合并更改时打破 Core Data 多线程保留周期?

ios - Objective C - 编写 if 语句的更好方法

ios - 为什么每次快速播放声音时我的游戏都会出现延迟?