From 85387a2478551ad84f39be8a3c8587d34dd2bcf5 Mon Sep 17 00:00:00 2001 From: leeway Date: Tue, 20 Jun 2023 22:13:08 +0800 Subject: [PATCH] feat: pods use the same deployment target --- CocoaMQTT.podspec | 4 ++-- Example/Podfile | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CocoaMQTT.podspec b/CocoaMQTT.podspec index 6276fd61..b08bb695 100644 --- a/CocoaMQTT.podspec +++ b/CocoaMQTT.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "CocoaMQTT" - s.version = "2.1.4" + s.version = "2.1.5" s.summary = "MQTT v3.1.1 client library for iOS and OS X written with Swift 5" s.homepage = "https://github.com/emqx/CocoaMQTT" s.license = { :type => "MIT" } @@ -12,7 +12,7 @@ Pod::Spec.new do |s| s.ios.deployment_target = "11.0" s.tvos.deployment_target = "10.0" # s.watchos.deployment_target = "2.0" - s.source = { :git => "https://github.com/emqx/CocoaMQTT.git", :tag => "2.1.4"} + s.source = { :git => "https://github.com/emqx/CocoaMQTT.git", :tag => "2.1.5"} s.default_subspec = 'Core' s.subspec 'Core' do |ss| diff --git a/Example/Podfile b/Example/Podfile index 656b1dc9..e69c95c5 100644 --- a/Example/Podfile +++ b/Example/Podfile @@ -2,5 +2,12 @@ platform :ios, 11.0 use_frameworks! target 'Example' do + 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 pod 'CocoaMQTT/WebSockets', :path => '../' end