Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Make flutter project swift compatible AFTER creation

When i created my flutter project I didn't make it swift compatible because we didn't think we would need it, but now, after months of development and a couple releases on android, I've been asked to run/test the app on ios devices.

Is there a way to enable swift support at this point without having to create a new project from scratch and copy/paste the code there? There are a couple packages that require it in order to be run on ios.

like image 797
FunnyStunny Avatar asked Sep 16 '25 04:09

FunnyStunny


1 Answers

Delete the ios directory and run in the project directory

flutter create -i swift .

Previous manual changes need to be re-applied.

like image 164
Günter Zöchbauer Avatar answered Sep 19 '25 05:09

Günter Zöchbauer