Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How build Xamarin against older version of iOS SDK

I'm trying to build my Xamarin Forms app for the Apple store using Xamarin Studio on my MacBook. This worked fine until recently.

The only options available to me on the SDK version dropdown on the iOS Build tab are Default and 8.3. If I build using either of these and try to upload to the store I get the following error:

ERROR ITMS-90068: "This bundle is invalid. The value provided for the key MinimumOSVersion '8.3' is not acceptable."

I guess this is due to updating all Xamarin and Xcode components to their latest versions recently.

I'm trying to figure out how to get the 8.2 SDK back.

I tried downloading the iOS 8.2 Simulator from Xcode > Preferences > Downloads but that doesn't seem to have added anything in the Xamarin SDK version dropdown.

Any ideas?

like image 617
Steve Chadbourne Avatar asked Apr 17 '15 02:04

Steve Chadbourne


People also ask

How do I downgrade xamarin iOS?

Visual Studio for Windows Downgrading Xamarin. iOS to the version 10.12 in Visual Studio means that you need to downgrade VS to the version 15.3. You need to contact the support team for the download link since they provide only the link for the version N-1.

Can I build iOS app on Windows xamarin?

To build Xamarin. iOS apps with Visual Studio 2019 or Visual Studio 2022 on Windows, you will need: A Windows machine with Visual Studio 2019 or Visual Studio 2022 installed. This can be a physical or a virtual machine.

What are the requirements for building xamarin iOS?

Check your operating system version and follow the instructions for the Xamarin installer. Xcode 10 requires macOS High Sierra (10.13) or newer. The iOS 12 SDK ships with Xcode 10. You can still target older Android versions while using the latest SDK, or you can build against older versions of the SDK if required.


2 Answers

You're confusing the SDK version used to build your app with and the minimum iOS version your app requires.

It's perfectly possible to build an app using the iOS 8.3 SDK and target iOS 5.1.1 for instance.

You need to set the minimum iOS version for your app instead of changing the SDK version; this is done in the project's iOS Application options, by setting Deployment Target to your app's minimum iOS version.

like image 137
Rolf Bjarne Kvinge Avatar answered Oct 01 '22 21:10

Rolf Bjarne Kvinge


This is what I did to resolve the issue:

  • Right click on the .iOS project > Options
  • Set Build > iOS Build > Link behaviour to Link Framework SDKs Only.
like image 38
A-Sharabiani Avatar answered Oct 01 '22 22:10

A-Sharabiani