简体   繁体   English

在创建之后,使flutter项目与swift兼容

[英]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. 当我创建我的flutter项目时,我没有让它快速兼容,因为我们认为我们不需要它,但现在,经过几个月的开发和Android上的几个版本,我被要求运行/测试应用程序在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 删除ios目录并在项目目录中运行

flutter create -i swift .

Previous manual changes need to be re-applied. 需要重新应用以前的手动更改。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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