Everything works fine for the Android Release of the Application. I'm developing the app with Flutter using VS code, then I'm building it with Azure DevOps and finally I'm publishing it to the AppCenter.
In contrast to Android, IOS does not create an IPA file but only builds a Runner.app. So in Azure DevOps i'm building the app with following code:
trigger:
- master
pool:
vmImage: 'macos-latest'
steps:
- task: CocoaPods@0
inputs:
workingDirectory: './ios'
forceRepoUpdate: false
- task: MobileDevOpsKeychanger@0
inputs:
KeyChangerPassword: '$(keychangerpw)'
DoAndroidSigning: false
DoAppleDistribution: true
AppleAppIdDistribution: '[myBundleID]'
DoAppleEnterprise: false
- task: FlutterInstall@0
inputs:
channel: 'beta'
version: 'latest'
- task: FlutterBuild@0
inputs:
target: 'ios'
projectDirectory: '.'
iosCodesign: false
- task: CmdLine@2
inputs:
script: |
mkdir -p Payload
mv ./build/ios/iphoneos/Runner.app Payload
zip -r -y Payload.zip Payload/Runner.app
mv Payload.zip Payload.ipa
rm -Rf Payload
- task: CopyFiles@2
inputs:
Contents: '**/*.ipa'
TargetFolder: '$(Build.ArtifactStagingDirectory)'
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'drop'
publishLocation: 'Container'
But unfortunately when I do the same for IOS I'm getting this Error:
6851704Z ##[error]"{\"status\":\"error\",\"message\":\"Version could not be created from build. Please make sure that your .ipa file has the correct format.\"}" http response code: 422