hey24sheep / azure-flutter-tasks

Easily build and deploy with latest Flutter build tasks for Azure DevOps Pipelines Tasks
https://marketplace.visualstudio.com/items?itemName=Hey24sheep.flutter
MIT License
89 stars 22 forks source link

Flutter iOS Unable to run exportArchive #115

Closed vlad-buhaescu-qoob closed 5 months ago

vlad-buhaescu-qoob commented 9 months ago

I have followed the medium tutorial and fixed lot's of issues by myself although I got to this one:

Building App Store IPA...                                        2,157ms
Encountered error while creating the IPA:
error: exportArchive: Failed to log in.

If I run

flutter build ipa --export-options-plist=/Users/myUser/Documents/Developement/flutter_app/app/iOS/exportOptions.plist locally it is successfully generates the IPA file

More to that I ran locally the command below and it was successful:

xcodebuild -exportArchive -exportOptionsPlist --export-options-plist=/Users/myUser/Documents/Developement/flutter_app/app/iOS/exportOptions.plist -archivePath '/Users/myUser/Library/Developer/Xcode/Archives/2024-02-09/FlutterApp 2024-02-09 13.18.02.xcarchive' -exportPath /Users/myUser/Desktop

Thing is I didn't see any step where I have to provide some login info for an Apple ID. Any ideas how to make flutter build ipa --export-options-plist=etc pass on Azure Devops?

hey24sheep commented 9 months ago

As you can see the error is Failed to log in.. You will have to create a service connection on your project. Go to your settings and add a service connection of Apple ID and then it should work. Also go through the links below

hey24sheep commented 6 months ago

Check this issue as well if your issue isn't solved yet https://github.com/hey24sheep/azure-flutter-tasks/issues/119

Close your issue in case it's solved