error: module file's minimum deployment target is ios8.3 v8.3

IosXcodeSwiftXcode6Swift Playground

Ios Problem Overview


All attempts to import a dynamic framework in an Xcode playground yield the following error:

error: module file's minimum deployment target is ios8.3 v8.3

Ios Solutions


Solution 1 - Ios

You might have created a target after updating Xcode, which made 8.3 the iOS Deployment Target in Build Settings for that target.

I fixed this by:

  1. Setting the iOS Deployment Target to 8.0 (Which is the same as the rest of the project)

> Note iOS version mismatch in this screenshot (one is 10.0, other is 9.3) >Note iOS version mismatch > >Note iOS versions now match (make sure they all match) >iOS versions changed to match

  1. Doing a clean (Command+Shift+k) and build

If a clean+build doesn't fix it, switching the device/simulator that you are deploying to from the scheme menu and building again should help.

Solution 2 - Ios

This error might also crop up if you're unit testing. So in addition to what @Tony and @Allreadyhome has suggested, do the following:

  • With your test target selected, go to 'Build Settings'
  • Search for 'iOS Deployment target' at the top search bar.
  • Change the value for the iOS Deployment Target accordingly, (in the context of this question, you will change the deployment target to 8.0)

And you should be good.

Solution 3 - Ios

As mentioned by Tony you have to

1. Set the iOS Deployment Target to 8.0

If using Pods the further step you may need to do:

2. Go into the Pods dependancies and change the deployment targets to 8.0 also.

In my case, I had to change the deployment target on each of my pods to 8.0 as they were all on 8.3.

Solution 4 - Ios

In your Pod File, just delete the comment at this line:

platform :ios, '8.0'

It work for me.

Solution 5 - Ios

I've encountered error:

Module file's minimum deployment target is ios9.2 v9.2

After I changed the iOS deployment target to 8.0 for my PROJECT. The project is created by Xcode 7.2, with 'Include Unit Tests' and 'Include UI Tests' checked.

Because of the XCUIApplication() requires iOS 9.0+, to fix the error, just change the deployment target of UI Tests to 9.0 or above, and leaves 8.0 for other targets.

Solution 6 - Ios

  1. Goto, Target -> General -> deployment Info

  2. set the deployment Target as the one being prompted in the error message(8.3 in your case).

  3. product -> clean

  4. product -> Build

Solution 7 - Ios

I had this problem when the minimum deployment target of a select few dependencies was set to a more recent iOS version than main targets minimum deployment target.

Solution 8 - Ios

I had the same issue when i downloaded a framework tutorial with ios 12 & my sdk has to have ios 11.4. I set the iOS Deployment Target to the version I needed(11.4) and updated the Pods dependancies also. But missed a few. So, then I did a search with the version that i wanted to change (that is 12.0). It just lists everything that has the version number (target, project, podspec, pods). Changing everyone of those (to 11.4 in my case), solved it.

Solution 9 - Ios

We must change 2 place to get new deploy version. After that, clean build (Command+Shift+k) and build again.

enter image description here

enter image description here

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionVatsal ManotView Question on Stackoverflow
Solution 1 - IosalreadytakenView Answer on Stackoverflow
Solution 2 - IosVick SwiftView Answer on Stackoverflow
Solution 3 - IosAllreadyhomeView Answer on Stackoverflow
Solution 4 - IosKhuongView Answer on Stackoverflow
Solution 5 - IosNianliangView Answer on Stackoverflow
Solution 6 - IospriyaView Answer on Stackoverflow
Solution 7 - Iosuser1951992View Answer on Stackoverflow
Solution 8 - Iosanoo_radhaView Answer on Stackoverflow
Solution 9 - IosTrần Hữu HiềnView Answer on Stackoverflow