Xamarin Visual Studio ios simulator not working - ios

We recently acquired mobile solution that contains an ios and android project. Android project runs fine. When i run the ios project i get error stating
My environment is a windows laptop and a macbook pro running visual studio from windows.
I can pair to mac just fine
I am using automatic provisioning which appears to be correct since my team shows up in the team dropdown.
I feel like i did the provisioning correct because team would not show up in dropdown if not.
I have latest xcode installed on mac
I verified simulator runs fine on mac by starting through xcode
In the videos i watched as soon as mac was paired then more options appeared besides just simulator. (ipad, tvos, etc)
One question is when i registered my device i used the UUID from the macbook and not UUID of simulator. Could not get straight answer for this.
To be clear i am just trying to run the simulator and not a remote device.
Honestly i just want to be able to test the ios application. It should not be this many steps to just run a test. Is there a more simple way to test or am i on the right track?

Updating visual studio on my windows machine did the trick. I really wish the error would give me some kind of warning that would lead me to the conclusion that i needed to update visual studio. That would have saved me many hours.

Related

Xamarin.iOS does not support running or debugging the previous version of your project

I've been trying to fix this issue for 3 hours and nothing. My entire google search looks purple and there is no solution. This error just keep popping up no matter what I do.
Tried adding a new iOS project.
Tried creating a completely new project. Same issue.
I've got an iPad plugged in externally with a USB type C cable to my laptop and I have set up all the developer requirements from apple to be able to access my device via visual studio.
Updated the iPad to the latest iOS version 16.1.1 installed iTunes from the Microsoft store and I can see my device as an optional device to deploy my app too.
Windows 10
Visual Studio 2022
I've got a mac mini to test using Simulator but I want to test this on a real device not a Simulator. Works fine on Simulators but not on real device while plugged into Windows.
There is no more information I can provide with the error because I myself do no get more to work with either.
Many Thanks in Advance
Image of the .iOS/bin/iPhone/Debug. There are also country-specific directories above the files.

How to generate a .ipa file from my app using Visual Studio?

I'm using Visual Studio community 2022 and Xamarin to create a mobile app which is compatible with both iOS and Android. I would like to be able to download the app on my iPhone so I can test it properly and eventually be able to share the app with other people. I have been able to archive the Android version of my app (generate the .apk file) with Visual Studio since, from what I gather, I have an Android simulator in my computer. However, I am unable to archive the iOS version of my app and generate a .ipa file because I don't have such a simulator on my computer. I can't use my iPhone to play it since I don't have an Apple Developer account (and getting one would cost me $119 CAD which I'm not very eager to pay) so the remaining solution would be to pair to a Mac computer.
I own a Mac computer, but I don't use it anymore since it was getting pretty old (Macbook pro purchased in 2013). When I try and pair to my mac, I get the same error message every time and I don't know what to do about it:
"An error occurred while trying to establish an SSH connection with SSH keys to"
followed by my mac's IP address. However, even if I managed to pair my mac to visual studio on my Windows computer, I have a feeling I would still be unable to sign my code without the Apple Developer account.
I've tried many things:
I've downloaded Visual Studio for mac on my mac and run the code, but since my mac is old the version of xamarin I used in my code is incompatible with the versions of XCode and Visual Studio I can download.
When that failed, I've tried doing what's indicated on this website but I didn't succeed since archiving the app always failed, because the XCode version I can download isn't recent enough (I can only download version 12.4 and I need at least 13.3)
-I've looked a lot into signing the app without paying $119 to Apple for a developer account but have found nothing else.
If anyone has any suggestions about how to potentially get the .ipa file it would be greatly appreciated. Thanks:)

Xamarin iOS project suddenly gives 200+ errors (Visual Studio for Windows)

After four weeks, I returned to my Xamarin project in Visual Studio to finish my app, I updated Visual Studio on my Windows PC, I updated XCode on my Mac and when I try to launch emulator, I get this:
I changed nothing in the code, it worked previously. The only thing I can think of that could f*ck all up is I was trying to prepare my app for testing (so I was doing some stuff in developer account settings, provisioning etc.)
Does anyone know how to fix this, or at least what it means?
Thanks!
Okay, turns out the problem was in version mismatch :) All I needed to do was click "Update on Mac" in the "Connect to Mac" window.

VisualStudio 2017 for Mac - iOS Simulator Starts but Does Not Run the App

I have a MonoGame application for iOS and I want to try it with the iPhone Simulator.
When I run the application from Visual Studio for Mac 2017 (I've also tried Visual Studio for Mac 2019... but the result is the same), the iPhone Simulator starts successfully but it doesn't run my application, i.e. it just shows the standard apps like calendar, mail, news, etc.
Any help would be really appreciated :-)
The problem was that my application was build as a 32-bit executable whereas the iPhone Simulator is a 64-bit application. Specifying the appropriate build options fixed the issue.

Deploying Apache Cordova app to iPad without Apple developer account

After having developed an app for a friend using Visual Studio 2013 Pro with the Apache Cordova Extension, I hoped to also get it runnning on an iPad 3 as fast as with Android. However, things proved to be more complicated than originally thought: The 99$ for an Apple developer account would be far too high for a single device development (the app is intended to only work on one device, no commercial intentions).
At least I now have the ability to use Mac OSX and XCode, which is connected to Visual Studio via network. Installing the app in the iOS simulator works as expected, but I'm struggling with deploying it on the iPad. I already considered jailbraking the device, as the warranty is yet expired and it wouldn't be a problem for my friend. According to the Information I found it would be possible; however, I could not find much about how to do that.
Thanks in advance.
After several months I finally found a working solution:
The latest XCode version (7 Beta 2) is able to sign iOS applications using an ordinary AppleID instead of a $100 developer license.
First, you will need to prepare the vs-mda-remote node plugin on your Mac and be able to build applications [See here how]. Using an appropriate deployment target in Visual Studio, the app can be tested within a virtualized iOS environment.
However, the deployment options Remote Device and Local Device will both fail when you haven't subscribed to the Apple Developer Program. Other methods (described here or here) requiring jailbreaking the device haven't worked for me either.
Interestingly, Apple seems to have changed their strategy not much time ago , finally allowing to sign and deploy apps on non-rooted iOS devices.
Whenever an app is built for the iOS simulator, vs-mda-remote will create a whole new build folder (named using a 3 - 5 digit random number) located in ~/remote-builds/builds. Inside that build folder, you will need to find and open the XCode project file with XCode 7 (example path: ~/remote-builds/builds/654/cordovaApp/platforms/ios/YOUR_PROJECT_NAME.codeproj).
After having connected and detected your iOS device, you should be able to select it as deployment target. Then you should follow these instructions, basically just adding an AppleID which should be used to sign the app. This wasn't possible with earlier XCode versions and is certainly much easier than using one of the "hack"-like techniques involving jailbreaking your device and practically voiding it's warranty.
Finally, you will only need to set the Code Signing Identity to the registered AppleID (for both the Project and the Target) and you're ready to deploy your app.
This method worked for me using iOS 8.3 and Mac OSX Yosemite 10.10.4.
If there are any other questions, please feel free to ask.
in Visual Studio 2015 Community RC, there is an option to debug the app developed by cordova in 'remote device' (iPhone or ipad) connected to the Mac osx. Pls. try it.

Resources