清除所有的mobileprovision
通过终端进行删除
首先cd到目录”~/Library/MobileDevice/Provisioning\ Profiles”
<span style="font-family:SimSun;"><span class="pln" style="border: 0px; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(0, 0, 0);">cd </span><span class="pun" style="border: 0px; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(102, 102, 0);">~</span><span class="str" style="border: 0px; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(0, 136, 0);">/Library/</span><span class="typ" style="border: 0px; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(102, 0, 102);">MobileDevice</span><span class="pun" style="border: 0px; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(102, 102, 0);">/</span><span class="typ" style="border: 0px; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(102, 0, 102);">Provisioning</span><span class="pln" style="border: 0px; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(0, 0, 0);">\ </span><span class="typ" style="border: 0px; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(102, 0, 102);">Profiles</span><span class="pun" style="border: 0px; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(102, 102, 0);">/</span></span>
然后删除里面所有的mobileprovision文件
<span style="font-family:SimSun;"><span class="pln" style="border: 0px; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(0, 0, 0);">rm </span><span class="pun" style="border: 0px; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(102, 102, 0);">*.</span><span class="pln" style="border: 0px; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(0, 0, 0);">mobileprovision</span></span>
恢复需要的账号里的mobileprovision
这样再看xcode的时候,所有的mobileprovision,发现没有任何provisioning profile了。这个时候不需要再次的去一个一个的添加。
访问XCode的Preferences>Accounts,在Apple IDs里面找到你的帐号,选中后,在右侧,在Name下面会有一行描述。双击。在弹出窗口里面,有个刷新按钮,点击之后,属于这个帐号的provisioning profile就会再次出现
图文步骤
1. 进入Preferences
2. show details
3. 刷新
本文固定链接:<a href="http://www.shuizhongyueming.com/2014/04/how-to-clear-mobileprovision-file-in-xcode/%20title=" how-to-clear-mobileprovision-file-in-xcode"="" style="box-sizing: inherit; border-width: 0px 0px 1px; border-bottom-style: solid; border-bottom-color: rgb(51, 51, 51); font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(51, 51, 51); text-decoration: none;">http://www.shuizhongyueming.com/2014/04/how-to-clear-mobileprovision-file-in-xcode/
转载时请注明本文出处(水中月明的Blog)及文章链接