简体   繁体   English

Xamarin iOS App部署

[英]Xamarin iOS App deployment

The docs from Xamarin aren't explicit as to where an iOS device needs to be attached. Xamarin的文档并未明确指出iOS设备需要连接的位置。 I'm using VS to build a Xamarin app through a remote Mac Builder (connected via VPN) but my iphone is attached to my PC with Visual Studio. 我正在使用VS通过远程Mac Builder(通过VPN连接)构建Xamarin应用程序,但我的iPhone已通过Visual Studio连接到PC。 Its completely unclear as to whether or not you can deploy a compiled to from the PC you're running Visual Studio on or whether the iOS device needs to be USB'd to the remote Mac running the build. 关于是否可以从运行Visual Studio的PC上部署编译到的文件,还是需要将USB设备的USB设备连接到运行该版本的远程Mac,还不清楚。

Even though Xamarin offers developers the way to use C# creating native iOS applications, we also need to pair to a Mac which is required for compiling native iOS applications. 即使Xamarin为开发人员提供了使用C#创建本机iOS应用程序的方式,我们也需要与编译本机iOS应用程序所需的Mac配对。 So of course if you want to deploy on a real device, you need to connect it to the Mac. 因此,当然,如果要部署在真实设备上,则需要将其连接到Mac。

It seems you have already known how to create a provisioning profile. 看来您已经知道如何创建配置文件。 This documentation tells you how to pair to a Mac to deploy applications. 文档介绍了如何与Mac配对以部署应用程序。 Also before doing that you also need to complete the following steps: 同样,在此之前,您还需要完成以下步骤:

  • On a Windows machine, install Visual Studio 2017 在Windows机器上,安装Visual Studio 2017
  • On a Mac, install Xcode and Visual Studio for Mac 在Mac上,安装Xcode和Visual Studio for Mac

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

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