Can ios simulator can be run in Windows - ios

I m working on appium scripting for mobile application automation testing.
I m able to simulate android device using the emulator and run the script in the emulator.
Now my next task is to run in ios. Please let me know it is possible to do it in ios emulator in Windows machine. If so some headsup on it.

You can not. There are platforms like React Native, Flutter, Xamarin, etc which enables you develop iOS applications; but when it comes to debugging and deployment, you have to have a macOS, which in turn requires a Macintosh machine.

Yess you can use Remote simulator to windows by enabling it under
Tools >> Option >> Xamarin >> IOS setting >> Remote simulator to windows.
But you still need active mac agent connection to build your app

You can use Appium studio free community edition for testing iOS physical device from windows machine.
note:- I have tested appium studio personally and think it will be useful for others.

Related

How to build iOS app using Flutter with Windows 10

How can I build iOS app using Flutter with Windows 10?
I clicked in (build - Flutter - iOS app) from the tab bar, but it responds:
Building for iOS is only supported on the Mac.
It is not possible... You have to have a Mac to build an app for iOS.. That is Apple rules!!
It is not possible on a Windows 10. This way Apple can force developers to buy Apple hardware to develop for both platforms. You can try Hackintosh on a PC which will let you create IOS apps on non apple hardware.
It's not possible directly with Windows. You can achieve it though by using external services that provide Mac build machines. One of these services is Appollo.
Once you have Appollo installed and set up you can run the following command in your console to build your app
appollo build start --build-type publication
this will pre-publish your app on Apple Connect. You then have to add your screenshots etc...
You need to have xcode to create IOS app which is available only on OSX. Not on Windows. Not on Linux or anything. But using Hackintosh (Mac OS on normal desktop or laptop hardware) you can build IOS app on that PC or laptop though.
Apple only allows iOS emulator which is running on macOS, so we need to run macOS on your non-mac computer
Two ways:
Hackintosh (macOS running on non-mac device)
Virtual Machine (VM)
The first way can give you a high-performance environment (compare to VM) to run iOS simulator. But it's strict to your hardware. The best way is to use hardware as close to the original mac as possible.
The second way has better compatibility. You just need to download macOS's image and install system in VMware or other VM software.
But VM will degrade performance, and in my case neither of my graphics cards seem to work, so I'm guessing my CPU was rendering the GUI. Also, modern macOS (meaning better visuals but more rendering pressure) is slower than old macOS.

How can I connect IOS project created by flutter to firebase? [duplicate]

I am new to developing mobile apps and wanted to try Flutter but I use Windows. Because Flutter doesn't support Windows yet I had the idea to use a virtual machine running Linux to install Flutter. Does this work?
Also in the Flutter setup it says this:
To develop Flutter apps for iOS, you need a Mac with Xcode 7.2 or newer.
Is there a way to develop iOS apps without having a Mac?
Yes, you can develop iOS apps with Linux (or Windows) using Android Studio or Visual Studio Code. The point of Flutter is that you have one code base and can deploy to both Android and iOS. So the development phase is no problem.
In the past you could only deploy iOS apps to the App Store if you had a Mac, but there are some more options now. See the following articles:
How to sign Flutter apps for iOS automatically without a Mac
Developing and debugging Flutter apps for iOS without a Mac
How to develop and distribute iOS apps without Mac with Flutter & Codemagic
Build an iOS app without a Mac or iPhone using Flutter
To test your app on the iOS simulator, though, it is still necessary to have a Mac. However, theoretically the app should have the same behavior for most things as on an Android device, so you wouldn't necessary need to test it using the iOS simulator. I would say long term you would probably want to consider getting a Mac, but it is certainly not necessary in the beginning.
Update: In a recent app I made, my tests passed in the Android emulator but crashed in the iOS simulator. It was a normal bug and nothing specific to iOS, but for some reason the Android simulator didn't crash. So for a production app, you really do need to test it on an iOS device/simulator.
As you point in your question:
To develop Flutter apps for iOS, you need a Mac with Xcode 7.2 or newer.
You can work around by using an external service (like Travis-ci or other) to build your code for iOS. However it's not usable as a developer workflow as that can take several minutes to get the artefact.
You should check out MacOS cloud solutions like MacInCloud. There are CI/CD solution that will support it (e.g. CircleCI and BitRise) however these are not suited for development.
Services like MacInCloud allow you to remote desktop into a Mac where you could conceivably use XCode remotely.
Windows is now partially supported in the way you can edit and publish for Android but you still can't create for IOS where a mac is required (XCode).
More informations https://flutter.io/setup-windows
You can use tools like Appollo to do just that directly from Windows or Linux. Appollo is a python CLI tool.
To install Appollo run pip install appollo, then setup your developer account with Appollo (https://appollo.readthedocs.io/en/master/tutorial/2_configure_app_store_connect.html) once this is done you can start building your app with appollo build start
You can check out a few example videos here : https://www.youtube.com/channel/UCBNRrJd4UP0QQRoYF4JOEmA

How to create and deploy IOS App from windows OS

I'm creating a mobile application. The requirement is that the mobile application should be deployed in Android as well as iOS. I'm able to create the application and deploy it into Android using Ionic. But how do I do that for iOS. Is there a way we can use the Ionic in Windows OS and create app that is compatible with iOS.
Similar to Android Developer Options, is there any settings in IOS phones that will enable us to deploy the IOS app and test it.
You can run Mac OS X on your Windows machine using VMWare player. try searching 'Mavericks Retail VMware Image' in google, you will get download links... Hope it helps.
You need XCode to deploy any IOS application. To get XCode, you need a Mac.
The closeset thing you can do is using RemoteBuild, but you stil need a Mac.
After installing it, you can launch a build directly from Visual Studio.
For more information and a detailed guide, you can follow this link: https://github.com/Microsoft/remotebuild
You need a macOS to test and deploy iOS application on App Store, You can't deploy application directly by using windows OS.
OR
If you want to deploy application using windows OS then you have to use any virtualization software like: Virtual Box,
vMware and install macOs.

how to simulate ios app in windows using xamarin visual studio 2015

I am trying to simulate an iOS app on my windows machine using visual studio 2015(Xamarin installed). My windows machine is connected to a mac agent. When I simulate the app in the windows machine the simulator opens in the mac. Can any one tell me how to simulate the app on my windows machine.
You can use the iOS remote simulator. To use this feature you must update Xamarin and turn on remote simulator in Tools->Options->Xamarin->iOS.
You still need a mac for this feature.
You can use VNC to remote into the mac to show the simulator. That is what Xamarin dev's do at Evolve.
Unfortunately, that is your only option at the moment.
To simulate the iOS application, you must need MAC machine. Using Windows machine with Xamarin Studio, you can develop iOS application. But to run it on device or simulator, you need Mac machine.
Look at these solutions to remotely see the mac window:
Apple Remote Desktop
TeamViewer !
Chrome Remote Desktop
VNC Client. Activate screen sharing:
To fix this problem please follow these steps assuming your windows machine is connected to a mac agent:
Download and install the "Remoted iOS Simulator (for Windows)":
https://developer.xamarin.com/guides/cross-platform/windows/ios-simulator/
Go to Tools -> Options -> Xamarin -> iOS Settings:
Tick the checkbox "Remote Simulator to Windows"
Click in Build -> Configuration Manager:
Find your iOS project in the list and make sure the Platform is "iPhoneSimulator"
In your solution explorer right click in your iOS project and go to "Properties":
In the tab "iOS Build" find the section "Linker Options" and select the Linker behavior to "Link all assemblies" and Save
In your solution explorer right click in your iOS project again and click "Clean" and after that click "Rebuild"
Set the Visual Studio to run in Debug Mode and select "iPhone 5s iOS 9.3" click in option to launch the iPhone Simulator.
I hope it helps.
Remote iOS simulator is only available on enterprise
https://developer.xamarin.com/guides/cross-platform/windows/ios-simulator/
Remoted iOS Simulator requires a Visual Studio Enterprise license

How to setup Appium(framework) for iOS Device Automation on Windows OS.?

How should I setup Appium framework to test the application on iOS Device by using the Windows OS. is that possible.?
This special case is because, I have an application(Web GUI) which runs only on Windows OS and does the transaction with iOS mobile(via USB port) using the app on the device. So, I need to run the automation framework of iOS(Appium) on Windows OS.
is this possible by Virtual Machine etc. ??
As per Appium Platform Support mentioned on portal here
A Mac with XCode and the XCode Command Line Developer Tools
is must. So as per my knowledge, that is not possible.

Resources