Skip to main content

Build for Ios

1. Run the following commands in the terminal:

  • Open your project directory in a terminal.

  • Execute the following commands:

    flutter clean
    flutter pub get
    flutter build ios --release
    • flutter clean: Removes cached data to ensure a fresh build.
    • flutter pub get: Fetches all dependencies required for your project.
    • flutter build ios --release: Generates a release build for iOS.

2. The iOS build will be generated at:

  • After the build process completes, the release iOS app will be available in the following directory:
    • build/ios/iphoneos/Runner.app

3. Test the app on a physical or virtual device:

  • Open the iOS project in Xcode by navigating to the ios/ folder and running the Runner.xcworkspace file:

    open ios/Runner.xcworkspace
  • In Xcode, choose the desired device or simulator and click on the "Run" button to deploy the app.

  • You can also export the .ipa file for distribution or upload it to the App Store via Xcode's archive feature.