I used to create my apps using visual studio 2019 but for some reason I had to downgrade to vs 2017. my apps used to work properly and I had no problem compiling them on my physical device that has android 10 on it. now i'm getting an error when I open my old apps using vs 2017 that target framework version 9 is not supported. and when I try to create new apps, they won't run on my phone. I tried to change my target framework version but there is only versions up till android 6. i'm trying to install version 9 using the sdk manager but it's not working. I would like to know how to solve this issue. should I reinstall vs 2019. thanks in advance.
I attached a photo to show you what i'm doing to install api 29.
What is Xamarin version? I suspect that your version of Xamarin.Android is 6.x which means that you won't be able to target Android 7.0 or 7.1 even if they are installed through the SDK manager.
You can check the version from Help > About Microsoft Visual Studio.
If you're using Visual Studio 2017 or newer, Xamarin updates are delivered as part of Visual Studio updates. To manually check for updates, go to Tools > Extensions and Updates... In the left hand menu, open Updates and select Product Updates. If there are updates available, they will be shown on this list.
Related
I'm running Xcode 14.0 and Visual Studio for Mac, 17.3.5. The simulators don't show up in the dropdown menu where you can select the device you're using to run the app. I've verified that the Preferences | Apple SDK is pointed at Xcode.app, and that Xcode is located in the Applications folder. Why are the simulators not showing, and how can I fix it. Also: when I plug in a phone via USB, VS does successfully see the phone.
As Jason suggested, XCode 14 is not yet supported in Xamarin.iOS or .NET MAUI, you need downgrade your Xcode version to 13.4.1 and could download it from the downloads page in the Apple Developer Portal. For more information, you can refer to https://github.com/xamarin/xamarin-macios/issues/15954
Update:
Xcode 14 is currently supported, you need to upgrade your VS to 17.3.6 and if there are any other issues, please continue to post back to the GitHub.Thanks!
Visual Studio 17.3.6 was released yesterday which includes support for Xcode 14.0 on .NET 6
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).
We recently purchased a new license of RAD Studio Tokyo and installed version 10.2 Update 3 on Windows 10 Pro. We purchased the product specifically for the capability of targeting both Windows and iOS, but so far we can only target Windows.
The target environment is macOS 10.13.6, with all latest updates including Xcode 10.1 and iPhoneOS12.1.sdk, iPhoneSimulator12.1.sdk, MacOSX10.14.sdk. Also installed is PAServer-19.0.app and PAServerManager.app, which both run as expected.
After following the RAD Studio docs to setup a connection profile and iOS SDK, I was able to connect to PAServer, it parsed the available SDKs (/usr/bin/xcodebuild -version -sdk). The Add a New SDK dialog in RAD Studio then populates the Select an SDK version combobox with what it parsed, but it only lists the macOS SDK "MacOSX 10.14". There is no iOS SDK listed.
I then read the supported iOS target environments and saw iOS 12 is unsupported. So I downloaded Xcode 9.4.1 from Apple (which includes iOS 11.4 SDK), assuming iOS 11.4 would be supported since the RAD Studio docs say iOS 11 is supported.
Following the troubleshooting docs, I installed Xcode 9.4.1 to a standalone directory (leaving the existing Xcode 10.1 alone in /Applications), updated the system selected Xcode (using /usr/bin/xcode-select --switch /path/to/Xcode-9.4.1.app/Contents/Developer), then restarted PAServer.
Now when I try to select the supported version of iOS through the Add a New SDK dialog in RAD Studio, the Select an SDK version combobox is populated with the newly-installed older macOS SDK "MacOSX 10.13", so I'm confident it is looking in the correct paths, but there is still no iOS SDK listed. What gives?
We've had a hell of a time with Embarcadero licensing over the last couple of years, and this seems to be an extension of that.
Taking note of #DaveNottage's comment, I thought it was weird iOS wasn't listed as an available platform through the ISO installer and remembered how older versions of RAD Studio used to offer it as a "Mobile Pack Add-On", but only for certain editions. Then I compared my installed edition of RAD Studio (Professional) to the edition named in our new Network Named User license (Enterprise). Those don't match. So I launched the license manager, verified that indeed I have 2 different licenses installed, and that RAD Studio 10.2 was apparently using the older, inferior XE8 Professional license, since it was covered under their upgrade licensing.
I deleted this license from the license manager. Uninstalled RAD Studio 10.2. Re-installed using the exact same ISO I used originally. And now suddenly I have iOS 32-bit and 64-bit as available platforms, and they also now appear as available SDKs in the SDK Manager.
And for the record, you guys were much more help than Embarcadero Support. I submitted this exact same issue (copy-pasted), and their only response was that RAD Studio 10.2 doesn't support iOS 12 and to contact their sales team about access to the beta release of RAD Studio 10.3. So they clearly didn't even read the issue at all. Wonderful support for a $5000 license.
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.
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.