Flutter build IOS on root of flutter app does not work ?

· 3 min read
Flutter build IOS on root of my flutter app does not work
Flutter build IOS on root of my flutter app does not work

Whenever a user runs this command from a terminal: flutter builds ios in the root of the project for flutter app So in this article, we will learn about how to solve Flutter build IOS on the root of flutter app does not work?

Flutter build IOS on the root of my flutter app does not work?

The suggestion from flutter doctor -v is quite clear.

✗ Xcode installation is incomplete; a full installation is necessary for iOS development.
  Download at: https://developer.apple.com/xcode/download/
  Or install Xcode via the App Store.
  Once installed, run:
    sudo xcode-select --switch /Applications/Xcode.app/Contents/Develope

You could try starting Xcode and agree when it asks to install missing components.

I’d suggest you try the dev or master channel where support for Xcode 10 should have landed. Otherwise, check this suggestion https://github.com/flutter/flutter/issues/20685#issuecomment-413524718

Run the following commands in your terminal:

  •  cd your_project_path
  • sudo xcode-select –switch /Applications/Xcode.app/Contents/Developer
  • sudo xcodebuild -license
  • open -a Simulator
  • flutter run

You could also try the below steps:

  • Install Xcode (get it from https://developer.apple.com/xcode/) if you don’t have it yet.
  • Accept the Terms and Conditions.
  • Ensure Xcode app is in the /Applications directory (NOT /Users/{user}/Applications).
  • Point Xcode-select to the Xcode app Developer directory using the following command:
  • sudo Xcode-select -s /Applications/Xcode.app/Contents/Developer

Conclusion:

In this article, we have been through how to solve Flutter build IOS on the root of the flutter app does not work in Flutter.

Hope you enjoy this article. Drop us your feedback/suggestion.

Need support for Flutter App Development?

Thanks for Reading !!!
Keep Learning !!! Keep Fluttering !!!

FlutterAgency.com is our portal Platform dedicated to Flutter Technology and Flutter Developers. The portal is full of cool resources from Flutter like Flutter Widget GuideFlutter ProjectsCode libs and etc.

FlutterAgency.com is one of the most popular online portals dedicated to Flutter Technology and daily thousands of unique visitors come to this portal to enhance their knowledge on Flutter.

Leave a Reply