创建后使颤振项目快速兼容 [英] Make flutter project swift compatible AFTER creation
问题描述
当我创建我的 flutter 项目时,我没有让它快速兼容,因为我们认为我们不需要它,但是现在,经过几个月的开发和在 android 上的几个版本,我被要求运行/在 ios 设备上测试应用程序.
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.
此时有没有办法启用快速支持,而无需从头开始创建新项目并将代码复制/粘贴到那里?有几个包需要它才能在 ios 上运行.
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.
推荐答案
删除ios
目录并在项目目录下运行
Delete the ios
directory and run in the project directory
flutter create -i swift .
需要重新应用之前的手动更改.
Previous manual changes need to be re-applied.
这篇关于创建后使颤振项目快速兼容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!