Compile OSX app on Windows with Xamarin

偶尔善良 提交于 2020-03-19 05:42:04

问题


I have a Xamarin Mac app I've been handed to make some changes. I've got everything working correctly as far as Windows Visual Studio Xamarin connecting to Mac Xamarin -- the Mac ssh agent works and whatnot.

However, how do I compile the app? When I build it on Windows, it generates an .exe file. Is something supposed to be generated on the Mac side, too? Or do I take that .exe file and somehow package it into an OSX app?

I was trying to stay in my Windows environment to do the coding and building as much as possible.

Thank you.


回答1:


You will need to compile/package/debug it on macOS.

The build process is performed locally on Windows, generating IL assemblies that cannot be used for running or debugging apps, and it doesn't create application bundles.

re: https://developer.xamarin.com/releases/vs/xamarin.vs_4/xamarin.vs_4.2/#Xamarin.Mac_minimum_support.

macOS Apps Mac apps can be opened and compiled in Visual Studio to check for errors, however to debug or create a working executable the project must currently be built on a Mac. This limited support for Mac projects allows for easier code sharing in Visual Studio between iOS, Android, Windows, and Mac apps.

re: https://developer.xamarin.com/guides/cross-platform/windows/visual-studio/#macOS_Apps



来源:https://stackoverflow.com/questions/43298019/compile-osx-app-on-windows-with-xamarin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!