简体   繁体   English

如何从Windows在Iphone模拟器中部署应用程序

[英]How to deploy the app in Iphone simulator from Windows

I'm trying to deploy my app in i phone simulator. 我正在尝试在我的手机模拟器中部署我的应用程序。 My Mac and windows is connected in visual studio.Also the build is successful. 我的Mac和Windows在Visual Studio中已连接。构建也成功。 And the deployment is also successful but my app is not getting displayed in emulator because of Xcode version. 并且部署也成功,但是由于Xcode版本,我的应用程序未在模拟器中显示。

As you can see in this image below 如您在下面这张图片中看到的

错误的屏幕截图

I'm using Xcode version 7.0.1 and I cant use the Xcode more than this version because it wont support my Mac version 10.11.6. 我使用的是Xcode 7.0.1版,并且我无法使用超过此版本的Xcode,因为它不支持我的Mac版本10.11.6。 So how to deploy the app on the current version of Xcode. 因此,如何在当前版本的Xcode上部署应用程序。 Will I be able to specify in the visual studio properties that the app should deploy in xcode version 7.0.1? 我是否可以在Visual Studio属性中指定应用程序应在xcode 7.0.1版中部署的属性? Is it possible? 可能吗?

I would recommend that if you can't upgrade your Xcode version because of your Mac version, then you will need to install a Virtual Box and see if you can get a later OS version installed on that. 我建议您,如果由于Mac版本而无法升级Xcode版本,那么您将需要安装Virtual Box,并查看是否可以在该版本上安装更高的OS版本。 I've had this issue in the past as well when creating Android apps on a Windows machine. 在Windows机器上创建Android应用程序时,我也曾经遇到过此问题。 I installed a Virtual Box application with Linux and used that to code my Android application. 我在Linux上安装了Virtual Box应用程序,并用它来编码我的Android应用程序。

EDIT: Here is a link to a stackoverflow post regarding running Xcode on Linux: Can you Run Xcode in Linux? 编辑:这是有关在Linux上运行Xcode的stackoverflow帖子的链接: 可以在Linux中运行Xcode吗?

No it's not possible. 不,这不可能。 According to this documentation: https://docs.microsoft.com/en-us/xamarin/cross-platform/get-started/requirements#mac . 根据此文档: https : //docs.microsoft.com/zh-cn/xamarin/cross-platform/get-started/requirements#mac We know that: 我们知道:

  • The minimum required Mac operation system version is macOS Sierra (10.12) 所需的最低Mac操作系统版本是macOS Sierra(10.12)
  • For xamarin.iOS: The iOS that ships with Xcode 9 对于xamarin.iOS:Xcode 9随附的iOS

Also if we want to deploy xamarin.iOS project, we should install VS for Mac on Mac pc too. 另外,如果要部署xamarin.iOS项目,也应该在Mac PC上安装VS for Mac。 And the requirements of Visual Studio 2017 for Mac should be: 对于MacVisual Studio 2017的要求应为:

  • macOS Sierra 10.12: Community, Professional, and Enterprise. macOS Sierra 10.12:社区,专业人士和企业。
  • the latest version of Xcode 8.3 requires macOS Sierra 10.12, therefore Xamarin.iOS and Xamarin.Mac projects also require that minimum version. 最新版本的Xcode 8.3需要macOS Sierra 10.12,因此Xamarin.iOS和Xamarin.Mac项目也需要该最低版本。

So if you do want to deploy a xamarin.iOS app, try to upgrade your Mac pc's system version to 10.12. 因此,如果您确实想部署xamarin.iOS应用,请尝试将Mac PC的系统版本升级到10.12。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM