1
在Xcode中當(dāng)你在更新了你得證書而再重新編譯你的程序,真機(jī)調(diào)試會(huì)出現(xiàn)“Your build settings specify a provisioning profile with the UUID‘XXX’, however, no such provisioning profile was found. Xcode can resolve this issue by downloading a new provisioning profile from the Member Center.”镇饮。解決方案如下:
這里所說的就是要通過修改你的項(xiàng)目的.xcodeproj文件來解決上述的錯(cuò)誤取逾。
1.找到項(xiàng)目中的**.xcodeproj文件耗绿,點(diǎn)擊右鍵,show package contents(打開包內(nèi)容)砾隅。
2.打開后找到project.pbxproj文件误阻,用文本編輯器打開。其實(shí)就是右鍵晴埂,點(diǎn)擊open就好了究反。
3.打開這個(gè)文件后,按command+F儒洛,在這個(gè)文件中查找“PROVISIONING_PROFILE",找到和這個(gè)“
PROVISIONING_PROFILE = "487F3EAC-05FB-4A2A-9EA0-31F1F35760EB";
"PROVISIONING_PROFILE[sdk=iphoneos*]" = "487F3EAC-05FB-4A2A-9EA0-31F1F35760EB";”類似的都刪除精耐。
4.然后保存文件,重新打開項(xiàng)目琅锻。xcode會(huì)提示你重新下載安裝provisioning profile文件卦停。下載后安裝上就可以向胡。
還不行的話,重啟電腦試試,重啟可以解決好多bug.
2 模擬器打不開 unable to boot the simulator解決方法
以下方法可以解決CoreTelephony trace file error,但是解決后PD10依然打不開惊完。
說明:主要是/tmp目錄權(quán)限的問題僵芹,關(guān)閉“SIP”(關(guān)于SIP,請自行百度)保護(hù)后即可修改權(quán)限小槐。
先關(guān)閉SIP
1拇派、重啟 Mac,按住 Command+R 鍵直到 Apple logo 出現(xiàn)凿跳,進(jìn)入 Recovery Mode
2攀痊、點(diǎn)擊左上角Utilities > Terminal
3、在 Terminal 中輸入 csrutil disable拄显,之后回車
//到這里重啟試試,不過不行再繼續(xù)第四步
4苟径、重啟 Mac,在Terminal修改權(quán)限:sudo chmod 1777 /tmp
打開SIP
5躬审、重新執(zhí)行1-3步驟棘街,改為 csrutil enable
3
(11.29更)
A valid provisioning profile for this executable was not found.
一翻譯你就知道是provisioning profile 缺失.但是大部分情況是打包后沒改release到debug模式.
4 無證書真機(jī)測試:
Verify the Developer App certificate for your account is trusted on your device. Open Settings on Pad and navigate to General -> Device Management, then select your Developer App certificate to trust it.
解決方法:手機(jī)(真機(jī))中點(diǎn)擊設(shè)置(Settings) -》 通用(General)-》設(shè)備管理(Device Management)-》點(diǎn)擊對應(yīng)的id -》信任(Trust)
5 control reaches end non-void function
函數(shù)沒寫返回值
6 Provisioning profile "" doesn't include signing certificate "iPhone Distribution:
以前我是重新生成證書,現(xiàn)在覺得太傻.
以下,親測可用