有没有人知道如何将 Azure DevOps CI 与 ionic cordova ios 应用程序结合使用?
我尝试了以下
- Npm 安装
- Ionic 命令(命令:ionic cordova build ios)
- 列表项
- 安装苹果证书
- 安装苹果配置文件
- Xcode 构建
- 发布到应用商店(从市场安装)
Xcode 构建失败并出现以下错误
2020-05-06T22:29:39.9577800Z ##[section]Starting: Xcode build
2020-05-06T22:29:39.9594120Z ==============================================================================
2020-05-06T22:29:39.9594470Z Task : Xcode
2020-05-06T22:29:39.9594850Z Description : Build, test, or archive an Xcode workspace on macOS. Optionally package an app.
2020-05-06T22:29:39.9595210Z Version : 5.152.0
2020-05-06T22:29:39.9595490Z Author : Microsoft Corporation
2020-05-06T22:29:39.9595850Z Help : https://learn.microsoft.com/azure/devops/pipelines/tasks/build/xcode
2020-05-06T22:29:39.9596310Z ==============================================================================
2020-05-06T22:29:48.0466510Z ##[warning]Multiple Xcode workspace matches were found. The first match will be used: /Users/runner/runners/2.166.4/work/1/s/node_modules/@capacitor/cli/assets/ios-template/App/App.xcodeproj/project.xcworkspace
2020-05-06T22:29:48.0482290Z [command]/usr/bin/xcodebuild -workspace /Users/runner/runners/2.166.4/work/1/s/node_modules/@capacitor/cli/assets/ios-template/App/App.xcodeproj/project.xcworkspace -list
2020-05-06T22:29:53.0861170Z Information about workspace "App":
2020-05-06T22:29:53.0861630Z Schemes:
2020-05-06T22:29:53.0866440Z App
2020-05-06T22:29:53.0866690Z
2020-05-06T22:29:53.1010390Z The workspace contains a single shared scheme. 'App' will be used.
2020-05-06T22:29:53.1033230Z [command]/usr/bin/xcodebuild -version
2020-05-06T22:29:53.2107930Z Xcode 10.3
2020-05-06T22:29:53.2127580Z Build version 10G8
2020-05-06T22:29:53.2275010Z [command]/usr/bin/xcodebuild -sdk iphonesimulator12.4 -configuration Release -workspace /Users/runner/runners/2.166.4/work/1/s/node_modules/@capacitor/cli/assets/ios-template/App/App.xcodeproj/project.xcworkspace -scheme App build CODE_SIGN_STYLE=Automatic DEVELOPMENT_TEAM=XXXX | /usr/local/lib/ruby/gems/2.6.0/bin/xcpretty -r junit --no-color
2020-05-06T22:29:54.8861040Z
2020-05-06T22:29:54.8863380Z ⌠error: /Users/runner/runners/2.166.4/work/1/s/node_modules/@capacitor/cli/assets/ios-template/App/Pods/Target Support Files/Pods-App/Pods-App.release.xcconfig: unable to open file (in target "App" in project "App") (in target 'App')
2020-05-06T22:29:54.8864420Z
2020-05-06T22:29:54.8866300Z
2020-05-06T22:29:54.8868760Z
2020-05-06T22:29:54.8871220Z ⌠error: /Users/runner/runners/2.166.4/work/1/s/node_modules/@capacitor/cli/assets/ios-template/App/Pods/Target Support Files/Pods-App/Pods-App.release.xcconfig: unable to open file (in target "App" in project "App") (in target 'App')
2020-05-06T22:29:54.8872120Z
2020-05-06T22:29:54.8872340Z
2020-05-06T22:29:54.8878940Z
2020-05-06T22:29:54.8880320Z ⌠error: /Users/runner/runners/2.166.4/work/1/s/node_modules/@capacitor/cli/assets/ios-template/App/Pods/Target Support Files/Pods-App/Pods-App.release.xcconfig: unable to open file (in target "App" in project "App") (in target 'App')
2020-05-06T22:29:54.8880960Z
2020-05-06T22:29:54.8881090Z
2020-05-06T22:29:54.8891460Z ** BUILD FAILED **
2020-05-06T22:29:54.8892100Z
2020-05-06T22:29:54.9074960Z ##[error]Error: /usr/bin/xcodebuild failed with return code: 65
2020-05-06T22:29:54.9432910Z ##[section]Finishing: Xcode build
最佳答案
我通过移除电容器解决了这个错误
关于ios - 通过 Azure DevOps 构建 Ionic Cordova ios,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61646810/