我遇到了一個cordova構建在MacOS上。這些構建工作適用於Android,但構建iOS真的很痛苦。這是發生了什麼:Cordova爲iOS構建 - 沒有找到配置文件
>cordova build ios --device --debug --buildConfig ./build.json
.....
Check dependencies
No profile matching '******' found: Xcode couldn't find a profile matching '******'. Install the profile (by dragging and dropping it onto Xcode's dock item) or select a different one in the General tab of the target editor.
Code signing is required for product type 'Application' in SDK 'iOS 10.2'
這是一個新安裝的一切的最新版本(節點,科爾多瓦,科爾多瓦,IOS,的XCode等)。我根據開發人員ID,團隊,證書和配置文件設置了一切。所有這些工件都是有效的,我確實知道,因爲我將這個版本從英特爾XDK移到我的本地Mac電腦上。這裏是我的build.json:
{
"ios": {
"debug": {
"provisioningProfile": "******",
"developmentTeam": "******",
"packageType": "development"
},
"release": {
"provisioningProfile": "******",
"developmentTeam": "*******",
"packageType": "app-store"
}
}
}
我能看到的XCode帳戶首我所有的配置文件。我也在/Users/me/Library/MobileDevices/Provisioning Profiles
文件夾中看到它們。我已經打開了XCode項目,並在Build Settings和General選項卡中調整了項目和目標的代碼簽名。供應配置文件在那裏,團隊ID在那裏。
現在我需要的是讓cordova命令行工作。
那麼,我該如何讓cordova和XCode合作?它在哪裏查找這些配置文件,爲什麼找不到它們?是什麼賦予了?
我已經設法運行cordova生成的項目在XCode與模擬器,它工作正常。但是由於這些簽名問題,我無法生成ipa文件。 – Dima
我也設法在XCode中使用cordova生成的項目將產品導出到ipa並在iPhone上運行。但是我完全停留在cordova命令行上來生成沒有任何用戶交互的ipa文件。 – Dima