'Flutter/Dart on a IOS device?

How can I run my flutter program on a IOS device?

I'm gonna use a iphone6s.

I'm using a windows 10.

I'm either using visual studio code or android studio.

Last thing, how can I use visual studio code to run my flutter program on any device?

Android-studio you just press run but visual studio code confuses me.



Solution 1:[1]

You cannot run on IOS from a Windows machine. Apple doesn't allow building to IOS from anything but MacOS. You can run in Visual Studio Code by opening a terminal and typing flutter run.

Solution 2:[2]

While you can develop an application for IOS using Windows, you can't test or deploy it unless you're using a MacOS, which I personally think is a dirty way to force any developer to buy an overpriced hardware just for this sake. But anyway there seems to be some ways around it, i'll give you some articles that are probably worth reading.

  1. Developing and debugging Flutter apps for iOS without a Mac
  2. How to sign Flutter apps for iOS automatically without a Mac

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Benedikt J Schlegel
Solution 2 pedro pimont