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:
- 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 versions now match (make sure they all match)
- 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
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:
For your app target:
For your test target:
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
Disabled Uibutton Not Faded or Grey
How to Apply a Tintcolor to a Uiimage
Uirefreshcontrol - Pull to Refresh in iOS 7
Export Compliance in iOS App Submission
How to Check If a Framework Is Bitcode Supported for Xcode7
Dynamic Uiimageview Size Within Uitableview
View at the Bottom in a Uiscrollview, with Autolayout
Uitextfield - Capture Return Button Event
How to Delete App Build in New Itunes Connect Site
How to Add Textfield in Uialertcontroller
Sendasynchronousrequest Was Deprecated in iOS 9, How to Alter Code to Fix
How to Subclass Uitableviewcontroller in Swift
How to Populate Uitableview from the Bottom Upwards
Avplayer Resuming After Incoming Call
Allow Uiscrollview and Its Subviews to Both Respond to a Touch
How to Downscale a Uiimage in iOS by the Data Size