How to Enable Swift Support for Existing Project in Flutter

Make flutter project swift compatible AFTER creation

Delete the ios directory and run in the project directory

flutter create -i swift .

Previous manual changes need to be re-applied.

Create a Flutter project with Swift

Flutter uses Dart language.

Android - Java/Kotlin , iOS - Objc/Swift could be used to write plugins and platform dependent code. More details https://flutter.io/developing-packages/

When Flutter creates new project, it generates 2 native projects (iOS and Android), that would be able to run compiled Flutter project. Languages are selected via menu you posted. Check ios and android folders in created project.

Flutter project issue with enabling Android/iOS

Turns out flutter config --enable-android/ios doesn't add the missing Android/iOS files in the project. flutter create --platforms=android,ios [PROJECT] should be run instead.



Related Topics



Leave a reply



Submit