问题描述
非公共 API 使用:
Non-public API usage:
应用不允许访问 UDID,不得使用 UIDevice 的 uniqueIdentifier 方法.请更新您的应用程序和服务器,以将用户与 iOS 6 中引入的供应商或广告标识符相关联.如果您的源代码中的方法名称与上面列出的私有 Apple API 匹配,则更改您的方法名称将有助于防止此应用在以后的提交中被标记.此外,请注意上述一个或多个 API 可能位于您的应用程序附带的静态库中.如果是这样,它们必须被移除.
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.If method names in your source code match the private Apple APIs listed above, altering your method names will help prevent this app from being flagged in future submissions. In addition, note that one or more of the above APIs may be located in a static library that was included with your app. If so, they must be removed.
请帮助我如何避免他的问题.
Kindly help me how to i avoid his problem.
问候约翰
推荐答案
这就是你的答案.
"从 5 月 1 日起,App Store 将不再接受访问 UDID 的新应用或应用更新.请更新您的应用和服务器,以将用户与 iOS 6 中引入的供应商或广告标识符相关联"
Apple 现在阻止任何访问 UIDevice
的 uniqueIdentifier
属性的应用程序.将任何出现替换为 供应商或广告标识符或使用OpenUDID.>
Apple now block any App which accesses the uniqueIdentifier
property of UIDevice
. Replace any occurrence with the Vendor or Advertising identifiers or use OpenUDID.
NSUUID *uuid = [[UIDevice currentDevice] identifierForVendor];
NSString *uuidString = [uuid UUIDString];
一些可能有帮助的 StackOverflow 问题:
A few StackOverflow questions which may be of help:
- iOS 6.0 以下设备的广告标识符
- iOS6 UDID - identifierForVendor 与 identifierForAdvertising 相比有哪些优势?
- advertisingIdentifier 和 identifierForVendor 返回00000000-0000"0000-0000-000000000000"
如果您自己没有使用过uniqueIdentifier
,那么它将是一个调用它的SDK 库.通常来自 Mobclix、AdMob 或 Smaato 等广告网络.所有流行的广告网络都更新了删除 uniqueIdentifier
的 SDK.检查他们的网站以获取最新的 SDK.
If you haven't used uniqueIdentifier
yourself, then it will be an SDK Library calling it. Normally from an ad network such as Mobclix, AdMob or Smaato. All the popular ad networks have updated SDK's which remove uniqueIdentifier
. Check their websites for the latest SDK.
更新
刚刚在评论中看到您正在使用PhoneGap,猜测您还没有更新到最新版本.
Just seen in the comments you're using PhoneGap, guessing you haven't updated to the latest version.
确保您使用来自 http://phonegap.com/download/(2013 年 4 月 30 日发布)
这篇关于iTunes App 提交无效的二进制问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!