Ionic 用于离子电容器应用程序的Azure管道XCode构建(无此类模块“电容器”)

myzjeezk  于 2022-12-09  发布在  Ionic
关注(0)|答案(1)|浏览(140)

我有一个关于在离子电容器应用程序上运行带有Azure管道的xcode构建的问题。
离子和电容器的东西是工作正常。但与Xcode构建部分我有一个问题。模块没有找到。
在底部你可以找到我的管道。当我运行这个我得到以下错误消息:

/Users/runner/work/1/s/ProjectName/MobileApp/ProjectName/ios/App/App/AppDelegate.swift:2:8: no such module 'Capacitor'

有人知道问题出在哪里吗?

jobs:
- job: Job_1
  displayName: Agent job 1
  pool:
    vmImage: macos-latest
  steps:
  - checkout: self
  - task: NodeTool@0
    displayName: Use Node 16.x
    inputs:
      versionSpec: 16.x
      checkLatest: true
  - task: CmdLine@2
    displayName: Install global ionic and npx
    inputs:
      script: npm install -g @ionic/cli
  - task: CmdLine@2
    displayName: Npm install & ionic build in App Folder
    inputs:
      script: "npm install \nionic build"
      workingDirectory: ProjectName/MobileApp/ProjectName
  - task: CmdLine@2
    displayName: Create iOS App
    inputs:
      script: "npx cap add ios \nnpx cap sync ios"
      workingDirectory: ProjectName/MobileApp/ProjectName
  - task: CocoaPods@0
    displayName: pod install
    inputs:
      cwd: ProjectName/MobileApp/ProjectName/ios/App
  - task: Xcode@5
    displayName: Xcode build
    inputs:
      signingOption: auto
      teamId: XXXXXXXX
      cwd: ProjectName/MobileApp/ProjectName/ios/App/App
vtwuwzda

vtwuwzda1#

我遇到了同样的错误,必须指定Xcode@5任务输入

xcWorkspacePath: '$(Build.SourcesDirectory)/ios/App/App.xcworkspace'
scheme: 'App'

相关问题