创建后使Flutter项目迅速兼容 [英] Make flutter project swift compatible AFTER creation

查看:96
本文介绍了创建后使Flutter项目迅速兼容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我创建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.

这篇关于创建后使Flutter项目迅速兼容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆