C# 如何在 Windows 上使用 Xamarin Studio 开发 iOS 应用程序?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/16096218/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to develop iOS app using Xamarin Studio on Windows?
提问by imgen
I'm evaluating a Xamarin Studio indie license which does not include VS integration - Correct me if I am wrong. But I want to know if it's possible to use Xamarin Studio to do iOS development? I'm very interested in the new feature of iOS designer announced at Xamarin Evolve, ideally it shall be possible too on Windows.
我正在评估不包含 VS 集成的 Xamarin Studio 独立许可证 - 如果我错了,请纠正我。但是我想知道是否可以使用Xamarin Studio进行iOS开发?我对 Xamarin Evolve 上宣布的 iOS 设计器的新功能非常感兴趣,理想情况下,它也应该可以在 Windows 上实现。
If the answer is yes, how?
如果答案是肯定的,如何?
采纳答案by Rolf Bjarne Kvinge
Currently it is not possible to develop for iOS using Xamarin Studio on Windows.
目前无法在 Windows 上使用 Xamarin Studio 为 iOS 进行开发。
If you want to use Windows, you can use Visual Studio.
如果要使用 Windows,可以使用 Visual Studio。
If you want to use Xamarin Studio, you can do so on a Mac.
如果要使用 Xamarin Studio,可以在 Mac 上进行。
Note that you will always need a Mac around, even if you're using Visual Studio.
回答by vivek
We can use xamarin studio in Mac OS only. If you want to use xamarin in windows you need to download xamarin plug in to visual studio from xamarin.com. Also you must need Mac Os as virtually running on windows for debugging and seeing output. User interface design should only performs on Mac OS Xcode SDK. So only we need Mac OS virtual machine on windows. In visual Studio IOS project file having .xib file (i.e) Xcode Interface builder, in that file only we need to design user interface configurations using xcode on Mac OS.
我们只能在 Mac OS 中使用 xamarin studio。如果你想在 windows 中使用 xamarin,你需要从 xamarin.com 下载 xamarin 插件到 Visual Studio。此外,您还必须需要 Mac Os 作为在 Windows 上虚拟运行以进行调试和查看输出。用户界面设计应该只在 Mac OS Xcode SDK 上执行。所以我们只需要 Windows 上的 Mac OS 虚拟机。在具有 .xib 文件(即 Xcode Interface builder)的 Visual Studio IOS 项目文件中,在该文件中,我们只需要在 Mac OS 上使用 xcode 设计用户界面配置。
回答by maspai
http://docs.xamarin.com/guides/ios/getting_started/introduction_to_xamarin_ios_for_visual_studio/says
http://docs.xamarin.com/guides/ios/getting_started/introduction_to_xamarin_ios_for_visual_studio/说
Xamarin iOS for Visual Studio allows iOS applications to be written and tested on Windows computers, with a networked Mac providing the build and deployment service.
Xamarin iOS for Visual Studio 允许在 Windows 计算机上编写和测试 iOS 应用程序,并使用联网的 Mac 提供构建和部署服务。
So I think you can do developing and testing (debugging?) but not building nor deploying. CMIIW.
所以我认为您可以进行开发和测试(调试?),但不能进行构建或部署。CMIIW。
回答by SMKS
While not specifically answering the question, it should be noted that it is possible to develop for iOS in Visual Studiosusing a connected Mac as a build host. This connected Mac could either be through the network or can even be a VMrunning from your Windows machine.
虽然没有具体回答这个问题,但应该注意的是,可以使用连接的 Mac 作为构建主机在Visual Studios 中为 iOS 进行开发。这个连接的 Mac 可以是通过网络连接的,也可以是从你的 Windows 机器上运行的虚拟机。
回答by vibs2006
Currently it is not possibleto run Apple iOS emulator on windows.
目前无法在 Windows 上运行 Apple iOS 模拟器。
See the official documentation given on url Installing Xamarin.iOS on Windowsin Xamarin Developer Documentationwhich says :-
参见网址给出的官方文档在Windows上安装Xamarin.iOS在Xamarin开发者文档它说: -
There are some tasks that Xamarion.iOS for Visual Studio currently cannot do i.e No iOS simulator on Windows – The iOS Simulator runs on Mac OS X, so it's necessary to switch to the Mac's screen when testing on the simulator
Xamarion.iOS for Visual Studio 目前无法完成一些任务,即 Windows 上没有 iOS 模拟器 – iOS 模拟器在 Mac OS X 上运行,因此在模拟器上测试时需要切换到 Mac 的屏幕
回答by Durai Amuthan.H
Using Mac build Hostyou can do but you'll need the networked macfor developing and debugging too.
使用Mac build Host你可以做到,但你也需要联网的 mac来进行开发和调试。
or else you can use Xamarin Live Playerusing which you can debug,develop and deploythe app completely in windows without the help of any Apple system but to sign and release the app to appstore you will need Apple System though
或者您可以使用Xamarin Live Player使用它您可以在 Windows 中完全调试、开发和部署应用程序,而无需任何 Apple 系统的帮助,但要签署应用程序并将其发布到应用商店,您将需要 Apple System
回答by Arvind Chourasiya
You can code your whole iOSapplication of from Visual Studioin windows.
您可以在 WindowsiOS中从Visual Studio编写整个应用程序。
When it comes to execution of application, you have to have MAC machine. You can connect your MAC to windows on Network by Mac build Hostin order to run, debug your application in windows.
在执行应用程序时,您必须拥有 MAC 机器。您可以通过Mac 构建主机将您的 MAC 连接到网络上的Windows,以便在 Windows 中运行、调试您的应用程序。

