Make flutter project swift compatible AFTER creation

Viewed 1563

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.

1 Answers

Delete the ios directory and run in the project directory

flutter create -i swift .

Previous manual changes need to be re-applied.

Related