Code Signing Error: No profiles for 'com.example' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'com.example'
在一臺(tái)新編譯機(jī)上使用 CMake 構(gòu)建 iOS 工程時(shí),遇到了這個(gè)找不到 provisioning file 的問(wèn)題。
嘗試登陸到編譯機(jī)上用 Xcode 隨便打開個(gè) iOS 工程卻能正常的編譯打包。
解決方法是:創(chuàng)建一個(gè)新的 iOS 工程,填寫一個(gè)以 com.example. 開頭的 bundle id,打開 Automatically manage signing,Xcode 會(huì)自動(dòng)下載一個(gè)合適的 provisioning profile。
然后重新跑編譯腳本,此時(shí)可能觸發(fā) codesign 命令要求輸入賬戶密碼,填好后勾選始終允許。問(wèn)題解決~
參考:https://github.com/ruslo/polly/issues/102#issuecomment-264078385