Azure DevOps的离子macOS构建问题

问题描述 投票:0回答:1

我正在尝试使用Azure DevOps-托管的macOS代理为iOS构建基于Ionic的框架(包括Cordova插件)。我在需求部分中包含了xcode。

enter image description here

添加了Cordova构建任务并将平台值设置为'ios'

enter image description here

但是获取“当前工作目录不是基于Cordova的项目”错误。我有什么遗漏吗?

2018-11-07T19:49:07.6357620Z Module cache at /Users/vsts/.taco_home/node_modules
2018-11-07T19:49:08.4403560Z cordova already installed.
2018-11-07T19:49:08.4959970Z Adding support plugin.
2018-11-07T19:49:09.2854590Z { CordovaError: Current working directory is not a Cordova-based project.
2018-11-07T19:49:09.2855410Z     at Object.cdProjectRoot (/Users/vsts/.taco_home/node_modules/cordova/8.1.2/node_modules/cordova/node_modules/cordova-lib/src/cordova/util.js:170:15)
2018-11-07T19:49:09.2856100Z     at /Users/vsts/.taco_home/node_modules/cordova/8.1.2/node_modules/cordova/node_modules/cordova-lib/src/cordova/plugin/index.js:36:40
2018-11-07T19:49:09.2856540Z     at _fulfilled (/Users/vsts/.taco_home/node_modules/cordova/8.1.2/node_modules/cordova/node_modules/q/q.js:854:54)
2018-11-07T19:49:09.2856690Z     at self.promiseDispatch.done (/Users/vsts/.taco_home/node_modules/cordova/8.1.2/node_modules/cordova/node_modules/q/q.js:883:30)
2018-11-07T19:49:09.2856810Z     at Promise.promise.promiseDispatch (/Users/vsts/.taco_home/node_modules/cordova/8.1.2/node_modules/cordova/node_modules/q/q.js:816:13)
2018-11-07T19:49:09.2858330Z     at /Users/vsts/.taco_home/node_modules/cordova/8.1.2/node_modules/cordova/node_modules/q/q.js:877:14
2018-11-07T19:49:09.2858660Z     at runSingle (/Users/vsts/.taco_home/node_modules/cordova/8.1.2/node_modules/cordova/node_modules/q/q.js:137:13)
2018-11-07T19:49:09.2858880Z     at flush (/Users/vsts/.taco_home/node_modules/cordova/8.1.2/node_modules/cordova/node_modules/q/q.js:125:13)
2018-11-07T19:49:09.2859360Z     at _combinedTickCallback (internal/process/next_tick.js:73:7)
2018-11-07T19:49:09.2859510Z     at process._tickCallback (internal/process/next_tick.js:104:9)
2018-11-07T19:49:09.2860600Z   name: 'CordovaError',
2018-11-07T19:49:09.2861150Z   message: 'Current working directory is not a Cordova-based project.',
2018-11-07T19:49:09.2861220Z   code: 0,
2018-11-07T19:49:09.2861360Z   context: undefined }
2018-11-07T19:49:09.2972390Z ##[error]Task failed
ios cordova ionic-framework azure-devops cordova-plugins
1个回答
0
投票

尝试添加以下内容而不是cordova版本

  • npm安装

  • Ionic命令(命令:ionic cordova build ios)

  • 安装苹果证书
  • 安装苹果配置文件
  • Xcode构建
  • 发布到应用商店(从市场安装)
© www.soinside.com 2019 - 2024. All rights reserved.