-
Hi Everyone, I just followed the "Build your first app" tutorial on the ionic framework page. Everything goes as expected with the SPA and Android apps that I can launch on my local. But to try a build on IOS, I rely on Azure pipelines and here comes the issue. ❌ /Users/runner/work/1/s/ios/App/App/AppDelegate.swift:2:8: no such module 'Capacitor'
import Capacitor Here's my pipeline conf: trigger:
- chore/pipeline
pool:
vmImage: "macos-latest"
steps:
- task: Npm@1
inputs:
command: "ci"
- task: Npm@1
inputs:
command: custom
customCommand: run build
- bash: |
sudo npm i -g @ionic/cli
- bash: |
npx ionic cap sync
- task: InstallAppleCertificate@2
inputs:
certSecureFile: ios_development.p12
certPwd: $(certPwd)
keychain: "temp"
- task: InstallAppleProvisioningProfile@1
inputs:
provisioningProfileLocation: "secureFiles"
provProfileSecureFile: iosapp.mobileprovision
- task: CocoaPods@0
inputs:
workingDirectory: "$(Build.SourcesDirectory)/ios/App"
forceRepoUpdate: false
- task: Xcode@5
inputs:
actions: "build"
scheme: ""
sdk: "iphoneos"
configuration: "Debug"
xcWorkspacePath: "**/*.xcodeproj/project.xcworkspace"
xcodeVersion: "default"
packageApp: true
signingOption: "nosign" For now, I don't sign the app cause had issues with that too, but let's try to solve probs one at a time ^^ |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @Boimb, hard to say, looks like the pod dependencies aren't being loaded correctly. Unfortunately, there's not much we can do to help given we don't control that service. I'd like to throw in a mention for our Appflow build service. It integrates with Azure DevOps and was built specifically with Capacitor apps in mind. It's the best cloud build service for Capacitor apps. Happy to help with anything if you end up checking it out. |
Beta Was this translation helpful? Give feedback.
-
Hi @mlynch, thanks for the answer. For others that might hit this discussion, I got the fix (don't know how I missed it on SO :/ ) xcWorkspacePath: '$(Build.SourcesDirectory)/ios/App/App.xcworkspace' |
Beta Was this translation helpful? Give feedback.
Hi @mlynch, thanks for the answer.
Yes, your builtin solution/saas build service seems super nice. Unfortunately, I have to work with resources I have for the moment.
For others that might hit this discussion, I got the fix (don't know how I missed it on SO :/ )
In the build task, you have to specify the
App.xcworkspace
path, not theproject.xcworkspace
(as mentioned in the MS doc)