Mohsen Emami
Mohsen Emami

Reputation: 3142

How to open an Android Studio made Flutter project on Mac?

How can I open an existing Flutter project made by Android Studio on Mac-Os to export ipa version of app? Can it be done with Mac-Os version of Android Studio or I have to do it with X-Code? How? Thanks in Advance

Upvotes: 1

Views: 15123

Answers (3)

Mohsen Emami
Mohsen Emami

Reputation: 3142

I could finally do that by accomplishing the following steps:

  • Copy the project into macOs (with X-Code Installed)
  • Open it by Android Studio (preferably latest version)
  • Enable Flutter and Dart plugin on Android Studio framework settings
  • Run command flutter packages get (Connection to Flutter repositories must be available)
  • Run flutter build ios --release as @Günter Zöchbauer truly commented
  • Connect iPhone device or simulator and run directly on your device
  • If some errors printed you may need to verify your developer account settings on X-Code or check Github page of your libraries for possible iOS issues

Upvotes: 4

user3156040
user3156040

Reputation: 751

Connection to physical iPhone device is not necessary. Run any sample project in xcode. Start a Simulator. (Only One simulator preferrably).

  1. clone the repository from github into Mac (with X-Code Installed)
  2. open terminal.
  3. cd to your pubspec.yaml
  4. flutter run (it will automatically run flutter pub get) (It will launch on the already running iOS simulator)

follow steps on flutter.dev to install flutter. Above steps will only work from terminal if flutter doctor(any flutter command) is recognized

Upvotes: 1

Günter Zöchbauer
Günter Zöchbauer

Reputation: 657466

You can do it in XCode.
Ensure you run flutter build ios --release before you do.

Upvotes: 2

Related Questions