2016-12-01 78 views
3

由於我已從Cordova 6.0.0升級到6.4.0的最新版本,因此我無法成功構建。在使用cordova-cli構建iOS平臺時出現錯誤

我的過程如下:

cordova platform rm ios 
cordova platform add https://github.com/apache/cordova-ios.git 
cordova build --buildConfig=build.json ios --device 

我不能因爲我的項目不支持插件的一個建設一個仿真器。

我build.json文件看起來如下:

{ 
    "ios": { 
    "debug": { 
     "codeSignIdentity": "iPhone Developer", 
     "provisioningProfile": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", 
     "developmentTeam": "xxxxxxxxxx", 
     "packageType": "development" 
    } 
    } 
} 

我得到的錯誤是:

Check dependencies 
Bio-Oil Verify requires a provisioning profile. Select a provisioning profile for the "Debug" build configuration in the project editor. 
Code signing is required for product type 'Application' in SDK 'iOS 10.1' 

至於我的調查顯示,我這是建立正確的方法與最新版本的cordova-ios。

我的設置如下:

sw_vers -productVersion(Mac version) 10.12.1 
cordova -v        6.4.0 
ios-deploy -V       1.9.0 
cordova platform list     4.4.0-dev 
/usr/bin/xcodebuild -version   Xcode 8.1 

任何人都可以揭示什麼我失蹤這裏一些輕?

回答

0

我只使用配置文件,嘗試刪除所有其他屬性。

{ 
"ios": { 
    "debug": { 
     "provisioningProfile": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx" 
    } 
    } 
} 

如果這不起作用。打開它未能生成的xcode項目(確切的內部版本號和目錄將在輸出中)

打開xcode項目,您很可能會看到錯誤(旁邊的紅旗標記)您可以勾選,允許xcode自動簽名,這應該建立從那時起。

+0

據我所知,讓xcode自動簽署你的應用程序意味着你的構建配置將被忽略? – skepticscript

+0

你可以提供給我你的構建過程和您正在使用的版本,就像我上面展示的那樣? – skepticscript

相關問題