Xamarin Classic IOS, Visual Stuidio for mac - ios

Good morning and thank you for your time,
I am maintaining a mobile App made in Xamarin classic IOS with the Visual Studio Mac IDE. Recently Apple told me that I had to increase the SDK of this application to 15 to be able to upload my new version to the App Store, for this I had to update the operating system to MacOS Monterey Version 12.3.1, to later update Xcode 13.4 and to update the SDK of my project, once this change was made in Visual Studio Mac debugging options were disabled and the debug icon was changed to compile. When I access Run in the top menu of visual studio mac, the options to start debugging are disabled and no matter how much I change the debug project options remains the same.
Regards
enter image description here

It is very likely that you have some other Debug configuration that works (in Xamarin it could be Debug|iPhone).

Related

Visual Studio 2017 v15.9 Storyboard designer cannot connect to Mac while VS is connected to Mac

Visual Studio 2017 v15.9 on Windows 10 has apparently a new bug: the storyboard designer cannot connect to Mac. Previously in 15.8, the storyboard could connect and many features are working fine, however the ImageView could not work properly. After upgrading to to VS 2017 v15.9, the storyboard editor could not connect to Mac thus could not be opened, while VS is actually connecting to Mac and is able to compile and debug and deploy iOS app to simulators and devices.
I am having Mac Mini and xcode 10.1, but no VS for Mac. It is easy to replicate: just create a new Xamarin app with iOS project. After compiling and testing in simulators running in mac to prove things are OK, then double click on either LaunchScreen.storyboard or Main.storyboard created by scaffolding, then the designer tries to connect to Mac and end up with error message: "The iOS Designer requires an active connection to a Mac server. Please connect to a Mac to enable the designer.".
Now all my iOS apps work however I could not alter any storyboard. I don't like modifying the XML directly in a text editor.
I had spent hours researching solutions or hacks, so far no luck. Do you have some ideas? Cheers.
Here is a problem report that matches your bug description.
Visual Studio 15.9.2 has just been released, so try updating Visual Studio.
Here is a snippet of the Visual Studio 15.9.2 release notes:
Issues Fixed in 15.9.2
Xamarin iOS designer not working with 15.9 and Xamarin.iOS 12.2.1.10.

Xamarin.iOS versions mismatch 11.14

I am on current Visual Studio Version 15.8.4 which contain Xamarin.iOS 11.14.0.13. Today I updated my Visual Studio for Mac and automatically updated Xamarin.iOS to version 12.0.0.15 (based on he Xcode 10 final release) which is not compatible. I get the following error:
Xamarin.iOS versions mismatch
The Xamarin.iOS SDK version installed on
Max is not compatible with this version of Visual Studio. Would you
like us to install Xamarin.iOS '11.14' for you? This will overwrite
any existing Xamarin.iOS installation on your Mac.
When I click 'Install' then the following error occurs:
Error
There were problems installing Xamarin.iOS '11.14'. Please try
again and if the problem persists, try installing directly on the Mac
and connect again.
On the mac I chose Update channel: Stable. I also tried the other channels withoud success. I am not able to install version 11.14 at all at the moment.
Is my only option to wait until they fix that version mismatch?
Visual Studio Version 15.8.5 fixes this. The release notes contain the following text:
Visual Studio Tools for Xamarin now supports Xcode 10, which allows
you to build and debug apps for iOS 12, tvOS 12, and watchOS 5.
I am getting the same error after reading this blog post and following the upgrade suggestions.
https://blog.xamarin.com/ios-12-and-xcode-10/
But my first read through I missed this little tidbit.
"On Windows, Visual Studio 2017 will prompt for an update as it rolls out."
It appears as if the Visual Studio update might not be available yet. I allowed the prompt to downgrade the SDK and I can now connect again. My problem now is that I can no longer use the iOS Xamarin Simulator on my Windows machine. I get a device not found.
I figure the only way to fix this is to downgrade my Xcode back to 9. A workaround is to simply uncheck the "Remote Simulator to Windows" option in Visual Studio under Xamarin -> iOS Settings. That allows the simulator to launch my app on the Mac. I think I can live with this for now and hope that a new VS update is right around the corner.
Update: I also think it is important to mention that Matthew Clendening in the comments to the original post did provide a link to a preview release of the Visual Studio tools if any was unwilling to wait for an official release.
Update 2: We decided to try the pre-release versions of the Visual Studio tools that Matthew linked above and did verify that Pairing works after installing them. If people are not spooked off by pre-release software then it is a viable option.
Update 3: I spoke too soon. I am able to Pair with my Mac with XCode 10 installed but still cannot get the Simulator to run on my windows machine so I am essentially back to where I was when I down graded Xamarin.iOS SDK to 11.4. I am going to dig more to see if this is an unrelated issue.
Last Update: So, overnight as Todd mentioned Microsoft released 15.8.5 and after upgrading, everything is working normally again. Lesson learned ... don't upgrade ANYTHING until EVERYTHING is ready.

Device showing as disabled while trying to instrument the app + Xamarin.iOS

I am trying to instrument an app by connecting the device to Visual Studio Community for Mac (version 7.3.3). I am able to install and run the app in device, but when instrumenting its showing as disabled.
After updating the Xcode, Visual Studio (for Mac) and the iOS version the device is getting detected now. Its showing in enabled state. I have updated my Xcode to 9.4.1 and Visual Studio to 7.5.3 and iOS version to 11.4.
In case you are facing the same issue make sure everything is up todate.

Visual Studio 2015 Xamarin iOS menu disabled

I loaded Visual Studio Professional 2015
Version 14.0.25123.00 Update 2
Xamarin 4.0.3.214 (0dd817c)
Xamarin.Android 6.0.3.5 (a94a03b)
Xamarin.iOS 9.6.1.8 (3a25bf1)
However, when I bring up Visual Studio, the Tools/iOS menus items are disabled. The Android menu items ARE enabled.
Do you have installed Xamarin on a Mac and paired it to your Windows machine
Requirements & Installation
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.
Introduction to Xamarin.iOS for Visual Studio
Patience is a virtue. Eventually, the menu enabled itself while I was looking at a training video.
I got the same issue. When I installed Visual Studio 2017, first thing I did was to download an existing Xamarin project. When I checked the 'iOS' menu item in Tools it was all disabled.
After a restart of the system, I tried to create a new Cross Platform App (Xamarin). Once the solution is created, I got the following message and the iOS menu has Mac Agent option enabled.

Xamarin Studio does not recognize iOS device even though XCode does

I have a Mac 10.10.5 setup with XCode and Xamarin Studio for iOS development.
After an update Xamarin Studio no longer recognized my iOS device. It turned out that XCode could not start. After launching XCode which installed several components XCode now WORKS, I can build, deploy and debug in XCode. However Xamarin Studio cannot see the device in the device selection box.
Xamarin Studio can see, build for and deploy to any Simulator.
Visual Studio which uses the same machine as a Build Sever can see the device in the device selection box, but will not deploy nor debug (nothing happens).
Everything worked before the Mac / XCode / Xamarin update. No changes to device, project or settings.
So Xamarin piggy-backs onto Xcode, meaning that as long as Xcode should see it, Xamarin should see it as well. This most likely means that something within Xamarin is causing your device to be filtered out of the deployment targets list. Could your "Deployment Target" within the Info.plist within your project not be set to the proper iOS version?

Resources