应用程序二进制文件无效 [英] Invalid Application Binary
问题描述
今天我们收到了关于我们提交的反馈,我们不明白报告的问题:应用程序不允许访问UDID,不能使用UIDevice的uniqueIdentifier方法。请更新您的应用和服务器,将用户与在iOS 6中引入的供应商或广告标识符。
我们知道有关udid的拒绝,但我们的应用程序不使用这个!看完这个,我们的团队重新评估了应用程序,我们没有发现从UIDevice uniqueIdentifier的事件。
有人有想法吗?
研究后,我执行了greap命令:
my-app-directory $ grep -Rnis'uniqueIdentifier'*
二进制文件John.xcodeproj / project .xcworkspace / xcuserdata / franz.xcuserdatad / UserInterfaceState.xcuserstate matches
二进制文件John.xcodeproj / project.xcworkspace / xcuserdata / mahendra.xcuserdatad / UserInterfaceState.xcuserstate matches
二进制文件John.xcodeproj / project.xcworkspace / xcuserdata / pareshrathod.xcuserdatad / UserInterfaceState.xcuserstate匹配
二进制文件John.xcodeproj / project.xcworkspace / xcuserdata / User.xcuserdatad / UserInterfaceState.xcuserstate匹配
如何解决上述问题?
由John
您应该删除UDID的任何用法。
在您的应用程式中使用识别码
从5月1日开始,App Store将不再接受访问UDID的新应用或应用更新。请更新您的应用和服务器,以将用户与iOS 6中引入的供应商或广告标识符相关联。您可以在 UIDevice类参考。
资料来源: https://developer.apple.com/news/
虽然我没有独立地确认,我相信这是你应该使用:
NSUUID * uuid = [[UIDevice currentDevice] identifierForVendor];
NSString * uuidString = [uuid UUIDString];
Today we received a feedback about our submission and we do not understand the reported problem: "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.".
We know about the rejections about udid, but our App do not use this! After read this, our team reevaluated the App and we do not found occurrences from "UIDevice uniqueIdentifier". We also revised all used libraries and really we do not find any call from UDID.
Someone have ideas?
After research, I executed "greap" command:
my-app-directory $ grep -Rnis 'uniqueIdentifier' * Binary file John.xcodeproj/project.xcworkspace/xcuserdata/franz.xcuserdatad/UserInterfaceState.xcuserstate matches
Binary file John.xcodeproj/project.xcworkspace/xcuserdata/mahendra.xcuserdatad/UserInterfaceState.xcuserstate matches
Binary file John.xcodeproj/project.xcworkspace/xcuserdata/pareshrathod.xcuserdatad/UserInterfaceState.xcuserstate matches
Binary file John.xcodeproj/project.xcworkspace/xcuserdata/User.xcuserdatad/UserInterfaceState.xcuserstate matches
How to i solve above issues?
by John
You should remove any usage of UDIDs. Apple started rejecting apps using this as of May 1, 2013.
Using Identifiers in Your Apps
Starting May 1, the App Store will no longer accept new apps or app updates that access UDIDs. Please update your apps and servers to associate users with the Vendor or Advertising identifiers introduced in iOS 6. You can find more details in the UIDevice Class Reference.
Source: https://developer.apple.com/news/
Although I've not independently confirmed it, I believe this is what you should use:
NSUUID *uuid = [[UIDevice currentDevice] identifierForVendor];
NSString *uuidString = [uuid UUIDString];
这篇关于应用程序二进制文件无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!