Error: Module File's Minimum Deployment Target Is iOS8.3 V8.3

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

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.

SQLite.swift build error Module file's minimum deployment target is ios8.3 v8.3

I finally fixed the problem by changing the Deployment Target of the referenced SQLite project to 8.0. If you see iOS Deployment Target 8.3 lower the version and the error shall disappear.

Also clean the project by holding the alt/option key as pointed out by
@stephencelis in the comments

Module file's deployment target is ios9.0 v9.0 with Xcode 7 / Swift 2

Same, in my case

Selected TARGETS,

then go to "Build Settings"

Search for "iOS Deployment target” in search bar

Changed it from iOS 8.2 to 9.0 - in all

description

Do I still need the @availible 13.0 attribute in my class if my minimum deployment target is iOS 13.0?

No. You only need to use @available annotation when your deployment target is lower than the minimum OS version required for the API you are using.

So when targeting iOS 13, you don't need @available for Combine.

Can no longer import app module into unit tests after changing deployment target

You were almost there, you just need to update the iOS Deployment Target for your Project and both of your targets.

For your project:
Sample Image

For your app target:
Sample Image

For your test target:
Sample Image

You should probably do a clean and rebuild, no need to restart Xcode. I guess this will also work if you want to target 8.1 etc.



Related Topics



Leave a reply



Submit