Flutter/Dart on a IOS device? - ios

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.

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.

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.
Developing and debugging Flutter apps for iOS without a Mac
How to sign Flutter apps for iOS automatically without a Mac

Related

How do I test my Flutter App on my iPhone?

I'm currently working on a Flutter app and want to test it on my iPhone. I'm using VS Code and an Android Studio Emulator on Windows. How do I test my Flutter app on my iPhone? Any help would be appreciated!!
You can't do this without MacOS unfortunately. There are some ways to do it though on windows using a virtual box or a service like Appollo, but these are often very slow.

Run flutter app on iOS from android studio

So I'm trying to build an app on flutter SDK using the android studio platform and now I want to run it on an iOS device. I've serched on google like 1h but I couldn't find anything(they only said how to run it on MAC which I don't have) . Is there any way how can I run the app from my android studio (or output the iOS app like the android app file which I can find in the project folder?)
I believe your asking how to run your app on a physical iOS device which you can find on flutters website scroll down a little past half way and you will see a section called deploy to iOS devices. Since you don't have a mac testing on a physical device would be your only other option because you can not run a iOS simulator on anything but a mac computer. Gotta love apple :)
If you are without a mac there are some options to you. I will link to a couple articles below. Your best option is to get access to a mac I understand this isn't an option for everyone.How to sign Flutter apps for iOS automatically without a MacDeveloping and debugging Flutter apps for iOS without a Mac

Can you build a react-native iOS app using WINDOWS?

Can you build for iOS with react-native on Windows?
Or does it require xcode?
If so, any work arounds?
I dont want to work on a mac... or a mac vm.
I think the app you create with react-native will work with iOS but you might just have to develop it without an iOS SDK. (essentially, you can't really see the app in a virtual iOS device whilst developing).
However, i think if you develop the app for android using android studio SDK with react native, the app should also work with iOS as well. It's just that you won't really be able to see the app in development on a virtual iOS device.
Another option is to use expo when using react native. Essentially, it displays your app on your iphone so you can technically do app development whilst viewing the app on an iOS device, but I don't think its that great as you can only see it on your phone, whilst I prefer to use a virtual device on my laptop.
You can view documentation for expo in the react native docs here:
https://facebook.github.io/react-native/docs/getting-started
I'd recommend you to just develop the app for android using the android SDK from Android studio. This also works with expo or react native CLI. Although you may have to develop the app in a virtual android device, I think the app also works with an iOS device (it may just look a little bit different e.g. a button in android will look different to a button on iOS)
Here's a tutorial that really helped me with learning React-Native:
https://www.youtube.com/watch?v=NuZOwsmzcro
Just follow the steps and make sure you install an android SDK. Then once you get to around "9:25", instead of starting up an iOS emulator from an iOS SDK, start up the android one from android SDK, then hit the button "a" to choose android and you're all set!
The short answer is NO. iOS apps need to build on a Mac. However, if you have a cheap old Mac, or even a Mac cloud account, you can effectively do the equivalent while (almost) never touching the Mac. Of course, this assumes that it has been setup up once, and builds via Xcode or Xcode command line. Once that is done, you can automate it so that you're working and testing only on the PC.
For example, I once took over a React Native project where the previous developer did something similar. Because it was a generic interface, he coded on his PC, then tested via the Android emulator without ever testing for iOS. At that point you can simply push code to GitHub (manually, or with something like Fastlane or a user script). Separately, you have a script on that old Mac or online Mac-as-a-service that checks periodically and builds when the code changes. There were some times when the Mac needed special attention, but for the most part, it worked solely on one machine.
Namely, you can not run IOS Simulator on windows. But you can access a virtual IOS machine and run Simulator from windows virtually as a solution..

How do I test my NativeScript application on the device and am I in Windows?

I'm using a translator because I speak Spanish. I hope they understand me. I'm starting in Nativescript and I have a test application running on an Android emulator, so I want to test that application on my ios device. I have read that to run the command tns run ios it is necessary to do it in mac but I have Windows Any way to do it? , I have also read about Telerik but I still do not know what it is about
in windows is imposible to test IOS, you need to do it on a MAC OS because you need XCode to compile to IOS, even in MAC you need an IOS developer account because of the profiles.
Best regards!

Problems with my first Visual Studio iOS project

I just tried to start a simple iOS project in Visual Studio, and it's saying that it cannot find a Mac Build Host. Most frustrating of all, the Xamarin site has no information at all on what a Mac Build Host is. I've popped up the command prompt in Windows and perfectly able to ping my Mac machine, so it's definitely viewable from Windows.
I'm guessing it's got to be some kind of a background process that needs to run on the Mac, but nowhere in the Xamarin site tells me where I can get it.
Help!
<vent>
P.S. I'm seriously having second thoughts about "cross platform" and "portability" and "reuse existing C# skills" jargon from Xamarin. It was way, way easier to get my first app started in simple Objective-C. Xamarin's approach feels like "we will ship you a broken product for $999, and you can help us figure out how to make this more marketable".
</vent>
Edit: After reading everyone's posts, I think I will just use the Xamarin Studio rather than take the Visual Studio approach. It seems like the less complicated approach in the long run for someone like me. Thanks to everyone for your post!
The Xamarin docs site has instructions on how to set up your Mac to act as an iOS build host for Visual Studio. I agree this isn't very clear from the "Connect to a Xamarin.iOS Build Host" dialog, so I've filed a bug.
You can also use Xamarin Studio to develop Xamarin.iOS apps on the Mac. It uses the same project/solution format as Visual Studio, so you can share the solution with VS.
The Mac Build Host is a process which runs on the network-hosted mac you need to connect to from your Windows machine, in order to perform the final app compile and build. I have just installed iOS for Visual Studio, and I had to create a Xamarin account that was associated with the VS install. Also, I had to install Xamarin.iOS on the Mac itself, instructions here:
http://docs.xamarin.com/guides/ios/getting_started/installation/mac/
What wasn't explained properly was that I then had to close VS, open it and create a new iOS project. At this point, a wizard was initiated which used the Xamarin Bonjour service to locate our networked mac and use that as the build host. All the bits came installed with the Xamarin installer, I just had to initiate them by opening up a project.
Obviously this will be different for you using Xamarin Studio, but have you tried creating a new a project to see if this initiates a wizard? Or do you need to install the iOS on your mac as well as Windows?
I have to admit, I'm not entirely sure what is meant by "Mac Build Host" either. I would expect to find something like that if you were using Visual Studio to build with, not Xamarin Studio.
My best guess is that perhaps Xamarin Studio doesn't "see" your iOS development tools setup somehow? Can you go into the Add-in Manager and see what version of iOS development you have in there?
Sorry you're having a bad time with it so far. I've been using it for awhile and it's been fantastic for me so far.
Do you have bonjour installed on your windows machine? This is required for Xamarin studio on windows to talk to your mac build host. Also you need to set up the relationship as follows.
Section 3.1
For anyone else who might have spent a few days going around in circles the answer above that states you need to close VS, open it and create a new iOS project holds the key.
Xamarin really needs to make this much clearer!
Andreas
One further thing I've noticed is that despite my setting the Xamarin Bonjour service to start automatically, it somehow gets reset to Manual. The Xamarin plugin opens the services MMC when I launch Visual Studio and open an existing project when this occurs.
During debugging it's all too easy to stop the VS debugger before the iOS Simulator on the Mac machine has been halted. It works fine if you click on the iPhone Simulator bottom button then command-Q to close the simulator. That drops VS out of debug.
If though VS is stopped before the simulator in some cases this kills the connection and it needs VS to be closed down and restarted. Once or twice it has corrupted the iOS simulator and it comes up with an empty iPhone graphic, instead of the default Photos, Contacts Settings etc icons. In that case close and reopen it and as you start the simulator click on the iOS Simulator menu, then Reset Contents and Settings. That purges the corrupt state and it's all ok after that.
Overall it works well enough to not get in the way of development but any improvements by the Xamarin team are welcomed.

Resources