Reputation: 769
I am using an Azure Devops Build pipeline CI to build my Xcode workspace. It is working fine on local and runs well on physical device. But I wanted to use the pipeline to automate the build process which gives me error:
##[error]Error: /usr/bin/xcodebuild failed with return code: 65
The detailed error is, it is not able to load the contents of the file but that is not case when running on the xcode
❌ error: Unable to load contents of file list: '/Target Support Files/Pods-ProjectName/Pods-ProjectName-frameworks-Release-input-files.xcfilelist' (in target 'ProjectName' from project 'ProjectName')
❌ error: Unable to load contents of file list: '/Target Support Files/Pods-ProjectName/Pods-ProjectName-frameworks-Release-output-files.xcfilelist' (in target 'ProjectName' from project 'ProjectName')
Here is the yaml file contents in pipeline:
trigger:
- A/B_testing
pool:
vmImage: 'macos-latest'
steps:
- task: Xcode@5
inputs:
actions: 'build'
configuration: 'Release'
sdk: 'iphoneos'
xcWorkspacePath: 'ProjectName.xcworkspace'
scheme: 'ProjectName'
xcodeVersion: '13'
packageApp: false
signingOption: 'default'
I have tried by removing the input and output files from Build Phase of the Xcode project, uninstall/install pods, have added the lines in Podfile, other solutions on SO but could not found anything relevant to my error. If someone have idea about this or had this issue before, kindly share. Using Xcode 13.4 to build the app.
Upvotes: 2
Views: 1154
Reputation: 11
It's possible you need to add a 'CocoaPods@0' task before the Xcode build task to carry out a 'pod install' in the pipeline, can you try that?
Upvotes: 1