Image

flutter

Deployment: iOS

When your app is ready, you will have to deploy it.

2 min read
Last update: November 28, 2021

Magna ea nostrud proident mollit ea dolore pariatur enim incididunt nisi dolore veniam irure nisi. Occaecat nostrud proident eu excepteur tempor laboris sit quis aliqua. Incididunt sint incididunt ex ea voluptate sit. Et tempor nulla est nostrud pariatur ad sint commodo id ullamco cupidatat.

Clean cache

Before to deploy iOS app, you need to clean cache

  • Close Xcode
  • Execute cleaning
flutter clean ; rm -Rf ios/Pods ; rm -Rf ios/.symlinks ; rm -Rf ios:Flutter/Flutter.framework ; rm -Rf ios/Flutter/Flutter.podspec ; rm ios/Podfile.lock ; flutter pub get ; cd ios ; pod update ; cd ../

Uncheck Runner

In Xcode, select Runner, select TARGETS/Runner, select Build phases, open Copy Bundle Resources and remove Runner.app if you find it into list of files.

In project navigator, find Runner/Info.plist, open it and, at right side you have to see Target membership, uncheck Runner if checked.

Raw

  • https://openclassrooms.com
  • https://help.apple.com/xcode
  • Keychain Access->Request a Certificate From a Certificate Authorithy
    • email: apple developper account
    • Save on disk: name.certSigninRequest
  • on developer.apple.com->Certificates->Add button
    • Apple Development->upload name.certSigninRequest->Download development.cer->click on it to add to Keychain Access
    • Apple Distributtion->upload name.certSigninRequest->Download distribution.cer->click on it to add to Keychain Access
  • Invalid signature
    • Build Settings->Build Options: Enable Bitcode = Yes