Is there any way to run a flutter windows app on mac? - flutter

I've enabled the support for windows-desktop on flutter... but is there any way to compile and run the windows flutter app on macOS?

As of now! Unfortunately, "build windows" is only supported on Windows hosts.
However, you can have have virtual tools to help you build on Mac for example
Apple Boot Camp
The Boot Camp Assistant app is pre-installed on every recent Mac, and launching it will walk you through the process of installing Windows 10.
Parallels Desktop
Using Parallels Desktop 11, you can run Windows apps side-by-side with existing Mac applications, including Visual Studio and Cortana.
VMWare Fusion
Fusion 8 from VMWare will let you run Visual Studio right on your Mac desktop.
Oracle VirtualBox
VirtualBox is a free application for running virtual machines on your computer, and it supports running Windows on Mac.
Once you have these tools, you can install windows and start developing on Windows but virtually through Mac host.

Related

Flutter desktop questions

Please, if I setup flutter desktop on my Mac, can I develop a desktop application for windows?… (using mac for developing a windows desktop app)
Thank you .
I tried developing flutter desktop app with my Mac for macos .
You can write the code on any OS. However in order to compile your code you will have to do it on Windows OS.
See the documentation:
Note: To compile a desktop application, you must build it on the targeted platform: build a Windows application on Windows, a macOS application on macOS, and a Linux application on Linux.

How to connect window device with android studio / vscode running on virtual machine for flutter desktop application?

I am trying to develop a window application using flutter. My host os is linux. So, I have installed virtualbox and installed windows in that and changed the network adapter to bridged network. Now, I am able to ping the window machine using windows ip, which is 192.168.43.173, Now I want to use the windows machine for the application development.
I thought doing this will show the window device in the flutter device list. What should I do so that I can connect and develop the application?
Flutter has no support for what you are trying to do:
Cross-compiling is not currently supported for desktop; you cannot build for Windows from a Linux host.
The only desktop target device that is currently supported is the host itself; you cannot build on one machine and install and run on another from the flutter tool.
You will need to do your development from within your virtual machine.

Rad Studio 10 and Mac OSX Sierra (virtualbox guest)

Since i started developping applications using Rad Studio 10 i'm able to test the windows and android versions on my desktop.
However, i do not have a Mac. So i decide to create a virtualbox guest Mac OSX Sierra on my Windows 10 Pro 64-bit. It works fine but i'm not able to connect and share files between Mac/Windows or test iPhone using Rad Studio.
What steps do it requires to configure my virtualbox to work with RAD Studio 10 ?
You are lucky if virtual box work fine, me i always have trouble with it (especially connecting the ios device). However i found that vmware is much more stable, full screen resolution, much (much) better to handle the iphone connection via usb, and i didn't have yet any crash when on virtual box it's quite often
on vmware, you can also copy/past text from the virtual machine to the host that is very usefull when debuging (on virtual box you can not)
on both (vmware and virtual box) you need to setup the connection as bridged connection. after you successful installed the emb pa server, you can get the ip of the machine with the command "i"

Visual Studio Android Emulator couldn't install

I should install VS Android Emulator but I can't. Because VS Android Emulator doesn't show in installer. I use Macbook Pro that installed Windows 10 Education and it support VT. Also I has installed Hyper-V and I can start virtual machine. I has tried for VS 2015 Community and Enterprise but it hasn't emulator. What can I do to install VS Android Emulator and What is system requirements?
Edit:
I upgrade Windows to Enterprise edition and Android Emulator is working. I think Windows 10 Education Edition is not fine for Hyper-V.
The VS Emulator for Android requires Hyper-V, which is only available in certain versions of Windows 10. Windows 10 Home and Education editions do not have Hyper-V, so you'll need Windows 10 Pro or greater to use the emulator.
Try installing the emulator by itself from this link:
https://www.visualstudio.com/en-us/features/msft-android-emulator-vs.aspx
The VS Emulator for Android does not work on Windows 10 (for me).
My advice is do not worry because there are much better options. I use Genemotion & VirtualBox with Hyper-V disabled and it is great. Also, the Google Android emulator with HAXM is great.
Google emulators include two versions (with and without Google APIs). And I've been able to successfully install Google Play services in Genemotion on 4.4.4 hosts.
Therefore, either the Google or Genemotion options are extremely more useful than Microsoft's VS Emulator for Android on Hyper-V (even if it worked on Windows 10).

How to sideload apps to Windows 8.1 tablet from command line

I am new to Windows 8.1 app development. I have registered my Windows phone using "Windows Phone Registration" tool and was able to successfully deploy a "Hello, World" app onto it both from Visual Studio as well as from the command line.
This SO link says that development for Windows phones is not same as that of for tablets. We have to install remote debugger tools on the tablet and tell Visual Studio that we want to debug it on remote machine.
So, my questions are:
Is there any other way to deploy apps during development other than installing remote debugger tools on the tablet?
How can I sideload apps from command line onto the tablet?
Thanks in advance!
1) Create an appx package for the app not intended for upload to the Store (Visual Studio -> Project -> Store -> Create App Packages -> "No")
2) Zip up the AppX folder and transfer it to the tablet, unzip on tablet
3) Right-click "Add-AooDevPackage.psd1", run as administrator
This will install the package to your tablet. You can create a command-line app which will run this command as well.