ios项目不能再用UDID了

今天更新项目时,出现

Apps are note permitted to access the UDID and must not use the uniqueIdentifier method of UIDevice.

如下图:

 

利用下面命令搜索项目,原来真是百度地图的问题。

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

如果出现:

-bash: find: command not found
-bash: xargs: command not found
-bash: grep: command not found
-bash: grep: command not found
-bash: grep: command not found

先运行如下语句:

export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

在从新运行上面命令。

报了百度地图的问题,如下图:

马上下载最新sdk替换。结果替换后出了一堆问题。原来新的百度sdk需要多添加OpenGLES.framework

从新打包验证。。。通过

PS:全文查找uniqueIdentifier时,发现支付宝的签名验证有定义这个,可能换掉了。没有影响!

posted @ 2013-06-26 09:54  superchao  阅读(353)  评论(0编辑  收藏  举报