How to build iOS app using Flutter with Windows 10 - ios

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.

Related

How to build IOS apps in flutter in windows

I want to develop a application for for my company. I'm using flutter to build it for both android and IOS platform. But I have only windows machine, so I'm only able to build it for Android. Can I build(generate apk) IOS flutter apps in windows machine ?
if yes please explain it well.
You can develop the UI on android itself. However, you need OSX to run an Iphone Simulator. An alternative would be to use a virtual machine with OSX installed. It is not recommended though.
Also, for IOS the build is different. It is not as simple as generating an apk and installing it on your phone. You will need itunes and a legit account to run it.
See more here

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

Developing and running iOS Cordova on Windows computers?

I need to develop an iOS application based on Apache Cordova on my Windows computer.
According to this website, I need to install Xcode that is an xip file. Is it possible to install this file on Windows computer ?
Is it practical ? And if so, what are the requirements ?
No you can't develp ios application with another systme than MacOS.
You should buy a Mac or try to emulate it (It seems to me that it is illegal to emulate an apple system on a host that is not an apple so I won't give any details).
Another solution is the build service of phonegap (https://build.phonegap.com). But you also need a MacOS for submit you'r apps on app store so... Welcome in the beautifull world of "Apple"
You cannot run directly install a mac file on a windows OS !
The only way to achieve this is to run a Mac Virtual Machine on your machine (I don't know where you can download a Mac image...)
Also you can try that

Debug IOS Application on the AMD notebook

I have notebook with the AMD FX 7500 processor and Windows 10 pro.
I also have installed VS 2015 Community and Xamarin. Is it possible to debug developed iOS application without iPhone? If yes, then how ?
You cannot build, run or test an iOS app without a Mac.
You may install Mac OS on VM on a PC but it's illegal (Apple does not allow this in the Mac OS TOS) and it often does not really work.
As Xamarin doc says:
There are a few requirements that must be adhered to when developing
for iOS in Visual Studio. As briefly mentioned in the overview, a Mac
is required to compile IPA files, and applications cannot be deployed
to a device without Appleā€™s certificates and code-signing tools. Also,
the iOS simulator can be used only on a Mac.
No. You have to have an OSX machine to act as a build host.

running xcode on a virtualbox with OSX

I want to play around with developing apps for OSX and iOS, just to see what i can learn. The problem is that i don't have a Mac or money to buy one. I was wondering if it is possible to try OSX on virtualBox and run xcode to develop and even, maybe, publish the apps.
Yes, it is, but it's illegal. Why not just grab a Linux distro, build the open toolchain and develop for Cydia?

Resources