Xamarin iOS App deployment - ios

The docs from Xamarin aren't explicit as to where an iOS device needs to be attached. 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. 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.

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. So of course if you want to deploy on a real device, you need to connect it to the 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. Also before doing that you also need to complete the following steps:
On a Windows machine, install Visual Studio 2017
On a Mac, install Xcode and Visual Studio for Mac

Related

visual studio 2022 installs monoframework 6.12.0.174 on mac, then iOS Simulator fails

I use Visual Studio 2022 on Windows for Xamarin development for Android & iOS. I use a Mac Mini with M1 for the iOS builds. All has been working fine for over a month. A few days ago I allowed the MAC to perform an update. Today when I tried to build for iOS, the Pair To Mac dialog said there was a monoframework mismatch and offered to install monoframework 6.12.0.174 on the MAC. Initially I chose Cancel,and then rebooted both machines. The same error occurred when I tried again. This time I allowed the install. After the install completed, every time I try to use the iOS Simulator it hangs as soon as it appears. I would appreciate some direction. I do not know how to fix it and I do not know how to back-out the mono install on the MAC. Please help.
Solution: I updated Visual Studio & Visual Studio for Mac to the current versions. Then found in the following in the Visual Studio ReleaseNotes:
Known Issues
Deploying an iOS app with Visual Studio 2022 and Apple Xcode 13.3 results in a Remote iOS simulator window with a blank/black screen. Workaround: Disable the “Remote Simulator to Windows” check box in the iOS Settings under the Tools - Options menu. The iOS app should deploy correctly on the macOS host.
Following those instructions I disabled the “Remote Simulator to Windows” check box in the iOS Settings under the Tools - Options menu. The iOS app then deployed correctly, but on the macOS host, no longer can it deploy on the Windows machine from the Mac build host as in prior versions.

Xamarin App running in Ios simulator using visual studio

I am facing the issue to run the xamarin app in IOS simulator. Whenever i am trying to run this app it was asking me to add or pair the Mac. Since I dont own the Mac I tried to install Xamarin.Ios in windows. In this process i need to install the XCode in my windows 10 Os. First of all i am unable to download the Xcode tool from Apple portal with valid credentials. I followed the below 2 links but no luck to download and install the Xcode. Could you guys please help me the easiest solution to download install the Xcode to do the next level of run the App in windows.
https://learn.microsoft.com/en-us/xamarin/ios/get-started/installation/windows/?pivots=windows
https://apps.apple.com/us/app/xcode/id497799835?mt=12
Bottom line is that iOS apps must be build using a licensed Mac OS, period. Visual Studio for Windows does not actually build the iOS app, what it does do is connect to a Mac (which must have XCode installed) and facilitate a remote iOS build via XCode. However, if you have a Mac, you can build both iOS and Android code directly on your Mac using Visual Studio for Mac. Yes, it is frustrating that you must have access to a Mac OS to build iOS apps, but this is a requirement and there is no way around it.

Debug IOS Application on the AMD notebook

I have notebook with the AMD FX 7500 processor and Windows 10 pro.
I also have installed VS 2015 Community and Xamarin. Is it possible to debug developed iOS application without iPhone? If yes, then how ?
You cannot build, run or test an iOS app without a Mac.
You may install Mac OS on VM on a PC but it's illegal (Apple does not allow this in the Mac OS TOS) and it often does not really work.
As Xamarin doc says:
There are a few requirements that must be adhered to when developing
for iOS in Visual Studio. As briefly mentioned in the overview, a Mac
is required to compile IPA files, and applications cannot be deployed
to a device without Apple’s certificates and code-signing tools. Also,
the iOS simulator can be used only on a Mac.
No. You have to have an OSX machine to act as a build host.

Cordova Visual Studio 2015 RC Community : Remote Device iOS

I'm currently discovering Visual Studio 2015 RC Community to develop mobile applications with Cordova.
I have a Mac (OS X Yosemite) with the necessary tools to use the iOS Remote Agent from within Visual Studio. I have an iPad connected to my Mac to deploy a basic Cordova application on this device.
Unfortunately I don't understand why in the list of iOS devices, I have no "remote device" (as shown in the screenshot tutorial https://msdn.microsoft.com/fr-fr/library/dn757056.aspx ) to deploy the application on the iPad connected to my Mac.
How can I resolve this problem?
Thank you for your answsers ;-).
Are you using a localized VS version as this is a known issue in localized version? If so, then as a workaround, can you try copying %PROGRAMFILES(X86)%\MSBuild\Microsoft\VisualStudio\v14.0\ApacheCordovaTools\vs-mda-targets\iOSRemotEDevice.xml into the fr-FR folder. The string wont be localized though.

A Mac build host was not automatically detected, Windows 8

I've Windows 8 and I'm trying to develop iphone application. I've downloaded and installed xamarin with ios development tools, started the visual studio 2012. So when I'am trying to create ios project, the window appears with message: "A Mac build host was not automatically detected". Can anybody help me? I searched the answer for a long time but did not succeed, thank's in advance!
Xamarin for Visual Studio still requires a Mac on the same network in order to build the app itself. iOS apps can't be built on Windows, currently.
From: http://xamarin.com/visual-studio
[...] with a networked Mac providing the build and deployment services.

Resources