简体   繁体   English

从 flutter 运行 ios

[英]Run ios from flutter

I have app I wrote its code by dart on Android studio flutter I test it on Android simulator and it worked but I can't test ios version I had already installed VMware and made a virtual machine from mac but I can't connect it with Android studio I have app I wrote its code by dart on Android studio flutter I test it on Android simulator and it worked but I can't test ios version I had already installed VMware and made a virtual machine from mac but I can't connect it with Android工作室

For running the App on iOS simulator.用于在 iOS 模拟器上运行应用程序。 You need to follow these things:您需要遵循以下几点:

  1. Follow Bilaal 's advice and install XCode.按照Bilaal的建议安装 XCode。
  2. Now after you are done, go to the project folder from Terminal or Command Prompt .现在完成后, go 从TerminalCommand Prompt到项目文件夹。 Type open -a simulator , this opens up a iOS simulator for you.输入open -a simulator ,这将为您打开一个 iOS 模拟器。
  3. Run flutter run运行flutter run

I hope that would help you in great extent.我希望这会在很大程度上帮助你。

For IOS, you need to run your codes using Xcode对于 IOS,您需要使用Xcode运行您的代码

Download the iPhone x simulator and make sure you have xcode up and running下载 iPhone x 模拟器并确保您已启动并运行 xcode

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

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