繁体   English   中英

使用cordova-cli构建iOS平台时出错

[英]Getting error when building iOS platform with cordova-cli

自从我从Cordova 6.0.0升级到6.4.0的最新版本以来,我一直无法成功构建。

我的流程如下:

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

谁能解释一下我在这里缺少的东西?

我只使用配置文件,尝试删除所有其他属性。

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

如果这不起作用。 打开它无法构建的xcode项目(确切的构建号和目录将在输出中。

打开xcode项目,你很可能会看到错误(签名旁边的红色标记)你可以勾选,允许xcode自动签名,这应该从那时开始构建。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM