请帮我解决下面提到的从应用商店获取问题
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.
If you think this message was sent in error and that you have only used Apple-published APIs in accordance with the guidelines, send the app's nine-digit Apple ID, along with detailed information about why you believe the above APIs were incorrectly flagged, to appreview@apple.com. For further information, visit the Technical Support Information page.
Once these issues have been corrected, go to the Version Details page and click "Ready to Upload Binary." Continue through the submission process until the app status is "Waiting for Upload." You can then deliver the corrected binary.
最佳答案
通过
查找使用UDID的类(通过项目目录中的终端)
find . | grep -v .svn | grep "\.a" | grep -v "\.app" | xargs grep uniqueIdentifier
您找到使用UDID的类,然后将其替换并使用UUID,或者如果您使用外部类,则将其替换为新类
关于iphone - 应用程序不允许访问UDID,并且不得使用UIDevice的uniqueIdentifier方法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16489079/