在Archive项目时,出现了“Your build settings specify a provisioning profile with the UUID “”, however, no such provisioning profile was found”的出错。一直提示指定UUID的provisioning profile找不到,感觉很奇怪。明明自己的provisioning profile是刚下载好的,并且全是新安装。于是通过谷歌找到了答案。
参考地址:http://stackoverflow.com/questions/1760518/codesign-error-provisioning-profile-cannot-be-found-after-deleting-expired-prof
这里所说的就是要通过修改你的项目的.xcodeproj文件来解决上述的错误。
1.找到项目中的**.xcodeproj文件,点击右键,show package contents(打开包内容)。
2.打开后找到project.pbxproj文件,用文本编辑器打开。其实就是右键,点击open就好了。
3.打开这个文件后,按command+F,在这个文件中查找“PROVISIONING_PROFILE",找到和这个“
</pre><pre name="code" style="white-space: normal; color: rgb(50, 62, 50); font-size: 14px; margin-top: 0px; margin-bottom: 10px; padding: 5px; border: 0px; vertical-align: baseline; overflow: auto; width: auto; max-height: 600px; line-height: 18px; background-color: rgb(255, 255, 255);"><code style="margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; background-color: rgb(238, 238, 238);"><span style="word-wrap: normal; word-break: normal; line-height: 21px; margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; background-color: transparent;">PROVISIONING_PROFILE </span><span style="word-wrap: normal; word-break: normal; line-height: 21px; margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; background-color: transparent;">=</span><span style="word-wrap: normal; word-break: normal; line-height: 21px; margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; background-color: transparent;"> </span><span style="word-wrap: normal; word-break: normal; line-height: 21px; margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; color: rgb(128, 0, 0); background-color: transparent;">"487F3EAC-05FB-4A2A-9EA0-31F1F35760EB"</span><span style="word-wrap: normal; word-break: normal; line-height: 21px; margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; background-color: transparent;">;</span><span style="word-wrap: normal; word-break: normal; line-height: 21px; margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; background-color: transparent;"></span><span style="word-wrap: normal; word-break: normal; line-height: 21px; margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; color: rgb(128, 0, 0); background-color: transparent;">"PROVISIONING_PROFILE[sdk=iphoneos*]"</span><span style="word-wrap: normal; word-break: normal; line-height: 21px; margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; background-color: transparent;"> </span><span style="word-wrap: normal; word-break: normal; line-height: 21px; margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; background-color: transparent;">=</span><span style="word-wrap: normal; word-break: normal; line-height: 21px; margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; background-color: transparent;"> </span><span style="word-wrap: normal; word-break: normal; line-height: 21px; margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; color: rgb(128, 0, 0); background-color: transparent;">"487F3EAC-05FB-4A2A-9EA0-31F1F35760EB"</span><span style="word-wrap: normal; word-break: normal; line-height: 21px; margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; background-color: transparent;">;</span></code><span style="word-wrap: normal; word-break: normal; line-height: 21px; background-color: transparent;">”类似的都删除。</span>
<span style="word-wrap: normal; word-break: normal; line-height: 21px; background-color: transparent;">4.然后保存文件,重新打开项目。xcode会提示你重新下载安装provisioning profile文件。下载后安装上就可以。</span>
<span style="word-wrap: normal; word-break: normal; line-height: 21px; background-color: transparent;">ps:我在xcode5中,是它自己通过网络安装的。 原文地址:http://blog.csdn.net/rbyyyblog/article/details/12220875</span>