简体   繁体   中英

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.

Delete the ios directory and run in the project directory

flutter create -i swift .

Previous manual changes need to be re-applied.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM