7
== Building for iOS ==

> xcode-project use-profiles
Configure code signing settings
Searching for files matching /Users/builder/Library/MobileDevice/Provisioning Profiles/*.mobileprovision
Searching for files matching /Users/builder/Library/MobileDevice/Provisioning Profiles/*.provisionprofile
List available code signing certificates in keychain /Users/builder/Library/codemagic-cli-tools/keychains/10-08-22_lujifhgh.keychain-db
Searching for files matching /Users/builder/clone/ios/**/*.xcodeproj
Completed configuring code signing settings
 - Using profile "codemaProfile" [cbbc5bb6-06f7-40cf-9559-50e8663dee93] for target "Runner" [Debug] from project "Runner"
 - Using profile "codemaProfile" [cbbc5bb6-06f7-40cf-9559-50e8663dee93] for target "Runner" [Profile] from project "Runner"
 - Using profile "codemaProfile" [cbbc5bb6-06f7-40cf-9559-50e8663dee93] for target "Runner" [Release] from project "Runner"
Generated options for exporting the project
 - Method: app-store
 - Provisioning Profiles:
     - com.globaltekne.dollsplasticsurgeryapp: codemaProfile
 - Signing Certificate: Apple Distribution
 - Signing Style: manual
 - Team Id: 7T9LTCB672
Saved export options to /Users/builder/export_options.plist

> flutter build ipa --release --export-options-plist /Users/builder/export_options.plist
Running "flutter pub get" in clone...                            1,916ms
Archiving com.golbaltekne.dollsplasticsurgeryapp...
Automatically signing iOS for device deployment using specified development team in Xcode project: 7T9LTCB672
Running pod install...                                           2,605ms
Running Xcode build...                                          
Xcode archive done.                                         107.6s
Built /Users/builder/clone/build/ios/archive/Runner.xcarchive.

 Building with sound null safety 

Building App Store IPA...                                        1,793ms
Encountered error while creating the IPA:
error: exportArchive: "Runner.app" requires a provisioning profile.

Try distributing the app in Xcode: "open /Users/builder/clone/build/ios/archive/Runner.xcarchive"
Mikhail Tokarev
  • 2,843
  • 1
  • 14
  • 35

1 Answers1

5

Open xcworkspace file in xcode. Select runner and select the application Target. Then select the relevant signing team. Keep the enable automatic signing option enabled. Then click on product -> archive. Once this is complete a window should appear (if not go to windows - organiser in xcode) showing the archieve. Click on distribute app then select to export or distribute. You can select release or debug mode while you distribute

preview

Kaushik Chandru
  • 15,510
  • 2
  • 12
  • 30
  • 7
    My "archive" menu item was disabled, because I had a simulator device selected. Once I selected "Any IOS Device" the item was enable. Took me a while to figure out my mistake. – AustrianDude Sep 07 '22 at 11:25