GCDWebServer icon indicating copy to clipboard operation
GCDWebServer copied to clipboard

GCDWebServer will not work on Xcode 13

Open harleyjcooper opened this issue 4 years ago • 6 comments

Currently, when using GCDWebServer on Xcode 12, it produces a warning of the format The iOS Simulator 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.

This means that it will be incompatible with Xcode 13, when it comes out.

As a result, the ios deployment version should eventually get bumped to 9.0.

harleyjcooper avatar Jan 08 '21 23:01 harleyjcooper

I pushed #529 to fix the issue

harleyjcooper avatar Jan 08 '21 23:01 harleyjcooper

Any news when the PR might get merged?

ucsbricks avatar Apr 16 '21 14:04 ucsbricks

Any news when the PR might get merged?

I don't have permissions but hopefully one of the owners can merge it

harleyjcooper avatar Apr 16 '21 15:04 harleyjcooper

If you use Cocoapos, you can fix this by following https://github.com/CocoaPods/CocoaPods/issues/9884#issuecomment-696222756

mstralka avatar May 30 '21 11:05 mstralka

@swisspol any chance this could get merged sometime soon? 🙏🏽

harleyjcooper avatar May 30 '21 17:05 harleyjcooper

@mstralka instead of explicitly setting a deployment target, you can instead delete them from the pods, causing them to inherit the top-level deployment target.

example:

platform :ios, '13.0'

target 'MyApp' do
  pod 'GCDWebServer'
  
  # thanks to https://stackoverflow.com/a/64048124
  post_install do |installer|
    installer.pods_project.targets.each do |target|
      target.build_configurations.each do |config|
        config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'
      end
    end
  end
end

pepasibble avatar Nov 17 '21 23:11 pepasibble