Trying to build Xcode project (with cocoa pods) in Azure-Pipeline, but getting no such module
despite selecting the workspace.
Tried building locally with commands, worked successful. Tried setting different variables in the yml, didn't help.
Using this command works locally but fails in azure
xcodebuild -sdk iphonesimulator -configuration Debug -workspace iosApp/iosApp.xcworkspace -scheme iosApp clean build
YML looks like this
- script: /usr/local/bin/pod deintegrate
workingDirectory: 'iosApp'
displayName: 'pod deintegrate'
- script: /usr/local/bin/pod install
workingDirectory: 'iosApp'
displayName: 'pod install'
- task: Xcode@5
inputs:
actions: 'clean build'
scheme: 'iosApp'
sdk: 'iphonesimulator'
configuration: 'Debug'
workingDirectory: 'iosApp'
xcWorkspacePath: 'iosApp/iosApp.xcworkspace'
xcodeVersion: 'default'
displayName: 'Building For iOS'
EDIT:
Still not working, however I realized that the module in question has a path associated with it, meaning it's local.
i.e.
pod 'Alamofire', :path => '~/Documents/Alamofire'
This could be part of the issue, since the other pods included seem to be working.