AliSoftware/Reusable

Swift Package Manager: reusable deployment target warning

chrisvanbuskirk opened this issue · 3 comments

FYI, receiving this warning using Xcode 12 Beta 6 and SPM

Xcode version: Xcode 12 beta 6
Reusable 4.1.1

The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99.

Screen Shot 2020-09-14 at 2 58 34 PM

This is also happening with Cocapods.

@aj-bmdi for Cocoapods there is a solution. I used a similar solution to this. Just put this code snippet at the end of your Podfile:

 post_install do |pi|
   pi.pods_project.targets.each do |t|
     t.build_configurations.each do |config|
       if config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'].to_f < 9 then
         config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
       end
     end
   end
 end

Sadly I don't know of a solution for Swift Package Manager beside updating the Package.swift file of the package itself to iOS 9.0.

Hi there, sorry for the delay replying there. I'll try to take a look this week-end!