From 26cbfc6628e1c1931189a85024aa2c59918c4e55 Mon Sep 17 00:00:00 2001 From: Mykhailo Grygorenko Date: Mon, 28 Sep 2026 13:31:58 +0300 Subject: [PATCH 1/2] Bump minimum deployment target to iOS 15 / macOS 12 / tvOS 15 / watchOS 9 Xcode 27 enforces a hard minimum deployment target of iOS 15.0 and no longer accepts anything lower. Raises Package.swift, NWWebSocket.podspec and the Xcode project's build settings accordingly. Bumped to 1.0.0 (a real major, not a 0.x minor) specifically so pusher-websocket-swift's `.upToNextMajor(from: "0.5.9")` SPM range correctly excludes this breaking release rather than silently pulling it into apps still pinned to PusherSwift 10.x. Part of a coordinated bump across pusher-websocket-swift, tweetnacl-swiftwrap, push-notifications-swift and pusher-http-swift. Ref: pusher/engineering-manual#737 Co-Authored-By: Claude Sonnet 5 --- CHANGELOG.md | 4 +++ NWWebSocket.podspec | 8 +++--- NWWebSocket.xcodeproj/project.pbxproj | 36 +++++++++++++-------------- Package.swift | 8 +++--- README.md | 17 +++++++------ 5 files changed, 40 insertions(+), 33 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c7e0e8e..2f02e6b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased](https://github.com/pusher/NWWebSocket/compare/0.5.10...HEAD) +### Changed + +- **Breaking:** Raised the minimum supported OS versions to iOS 15.0, macOS 12.0, tvOS 15.0 and watchOS 9.0 (from iOS 13.0, macOS 10.15, tvOS 13.0 and watchOS 6.0), required to build under Xcode 27. Consumers still targeting older OS versions should pin to `0.5.10` or earlier. Will ship as `1.0.0` (rather than a 0.x minor) specifically so SwiftPM's `.upToNextMajor` ranges on 0.5.x correctly exclude this breaking release. + ## [0.5.10](https://github.com/pusher/NWWebSocket/compare/0.5.9...0.5.10) - 2026-03-03 ### Fixed diff --git a/NWWebSocket.podspec b/NWWebSocket.podspec index 5cb387a..9c30b6b 100644 --- a/NWWebSocket.podspec +++ b/NWWebSocket.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'NWWebSocket' - s.version = '0.5.10' + s.version = '1.0.0' s.summary = 'A WebSocket client written in Swift, using the Network framework from Apple' s.homepage = 'https://github.com/pusher/NWWebSocket' s.license = 'MIT' @@ -12,7 +12,7 @@ Pod::Spec.new do |s| s.requires_arc = true s.source_files = ['Sources/**/*.swift'] - s.ios.deployment_target = '13.0' - s.osx.deployment_target = '10.15' - s.tvos.deployment_target = '13.0' + s.ios.deployment_target = '15.0' + s.osx.deployment_target = '12.0' + s.tvos.deployment_target = '15.0' end diff --git a/NWWebSocket.xcodeproj/project.pbxproj b/NWWebSocket.xcodeproj/project.pbxproj index 75e205d..7712110 100644 --- a/NWWebSocket.xcodeproj/project.pbxproj +++ b/NWWebSocket.xcodeproj/project.pbxproj @@ -321,7 +321,7 @@ "SWIFT_PACKAGE=1", "DEBUG=1", ); - MACOSX_DEPLOYMENT_TARGET = 10.10; + MACOSX_DEPLOYMENT_TARGET = 12.0; ONLY_ACTIVE_ARCH = YES; OTHER_SWIFT_FLAGS = "$(inherited) -DXcode"; PRODUCT_NAME = "$(TARGET_NAME)"; @@ -344,9 +344,9 @@ ); HEADER_SEARCH_PATHS = "$(inherited)"; INFOPLIST_FILE = NWWebSocket.xcodeproj/NWWebSocket_Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 13.0; + IPHONEOS_DEPLOYMENT_TARGET = 15.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) $(TOOLCHAIN_DIR)/usr/lib/swift/macosx"; - MACOSX_DEPLOYMENT_TARGET = 10.15; + MACOSX_DEPLOYMENT_TARGET = 12.0; OTHER_CFLAGS = "$(inherited)"; OTHER_LDFLAGS = "$(inherited)"; OTHER_SWIFT_FLAGS = "$(inherited)"; @@ -357,8 +357,8 @@ SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited)"; SWIFT_VERSION = 5.0; TARGET_NAME = NWWebSocket; - TVOS_DEPLOYMENT_TARGET = 13.0; - WATCHOS_DEPLOYMENT_TARGET = 6.0; + TVOS_DEPLOYMENT_TARGET = 15.0; + WATCHOS_DEPLOYMENT_TARGET = 9.0; }; name = Debug; }; @@ -373,9 +373,9 @@ ); HEADER_SEARCH_PATHS = "$(inherited)"; INFOPLIST_FILE = NWWebSocket.xcodeproj/NWWebSocket_Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 13.0; + IPHONEOS_DEPLOYMENT_TARGET = 15.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) $(TOOLCHAIN_DIR)/usr/lib/swift/macosx"; - MACOSX_DEPLOYMENT_TARGET = 10.15; + MACOSX_DEPLOYMENT_TARGET = 12.0; OTHER_CFLAGS = "$(inherited)"; OTHER_LDFLAGS = "$(inherited)"; OTHER_SWIFT_FLAGS = "$(inherited)"; @@ -386,8 +386,8 @@ SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited)"; SWIFT_VERSION = 5.0; TARGET_NAME = NWWebSocket; - TVOS_DEPLOYMENT_TARGET = 13.0; - WATCHOS_DEPLOYMENT_TARGET = 6.0; + TVOS_DEPLOYMENT_TARGET = 15.0; + WATCHOS_DEPLOYMENT_TARGET = 9.0; }; name = Release; }; @@ -404,7 +404,7 @@ "$(inherited)", "SWIFT_PACKAGE=1", ); - MACOSX_DEPLOYMENT_TARGET = 10.10; + MACOSX_DEPLOYMENT_TARGET = 12.0; OTHER_SWIFT_FLAGS = "$(inherited) -DXcode"; PRODUCT_NAME = "$(TARGET_NAME)"; SDKROOT = macosx; @@ -456,17 +456,17 @@ ); HEADER_SEARCH_PATHS = "$(inherited)"; INFOPLIST_FILE = NWWebSocket.xcodeproj/NWWebSocketTests_Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 14.0; + IPHONEOS_DEPLOYMENT_TARGET = 15.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @loader_path/../Frameworks @loader_path/Frameworks"; - MACOSX_DEPLOYMENT_TARGET = 10.15; + MACOSX_DEPLOYMENT_TARGET = 12.0; OTHER_CFLAGS = "$(inherited)"; OTHER_LDFLAGS = "$(inherited)"; OTHER_SWIFT_FLAGS = "$(inherited)"; SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited)"; SWIFT_VERSION = 5.0; TARGET_NAME = NWWebSocketTests; - TVOS_DEPLOYMENT_TARGET = 13.0; - WATCHOS_DEPLOYMENT_TARGET = 6.0; + TVOS_DEPLOYMENT_TARGET = 15.0; + WATCHOS_DEPLOYMENT_TARGET = 9.0; }; name = Debug; }; @@ -481,17 +481,17 @@ ); HEADER_SEARCH_PATHS = "$(inherited)"; INFOPLIST_FILE = NWWebSocket.xcodeproj/NWWebSocketTests_Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 14.0; + IPHONEOS_DEPLOYMENT_TARGET = 15.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @loader_path/../Frameworks @loader_path/Frameworks"; - MACOSX_DEPLOYMENT_TARGET = 10.15; + MACOSX_DEPLOYMENT_TARGET = 12.0; OTHER_CFLAGS = "$(inherited)"; OTHER_LDFLAGS = "$(inherited)"; OTHER_SWIFT_FLAGS = "$(inherited)"; SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited)"; SWIFT_VERSION = 5.0; TARGET_NAME = NWWebSocketTests; - TVOS_DEPLOYMENT_TARGET = 13.0; - WATCHOS_DEPLOYMENT_TARGET = 6.0; + TVOS_DEPLOYMENT_TARGET = 15.0; + WATCHOS_DEPLOYMENT_TARGET = 9.0; }; name = Release; }; diff --git a/Package.swift b/Package.swift index acf6fcc..14f414e 100644 --- a/Package.swift +++ b/Package.swift @@ -4,10 +4,10 @@ import PackageDescription let package = Package( name: "NWWebSocket", - platforms: [.iOS("13.0"), - .macOS("10.15"), - .tvOS("13.0"), - .watchOS("6.0")], + platforms: [.iOS("15.0"), + .macOS("12.0"), + .tvOS("15.0"), + .watchOS("9.0")], products: [ .library( name: "NWWebSocket", diff --git a/README.md b/README.md index c5c788d..67ca1bb 100644 --- a/README.md +++ b/README.md @@ -22,12 +22,15 @@ A WebSocket client written in Swift, using the Network framework from Apple. ## Supported platforms - Swift 5.1 and above -- Xcode 11.0 and above +- Xcode 13.0 and above ### Deployment targets -- iOS 13.0 and above -- macOS 10.15 and above -- tvOS 13.0 and above +- iOS 15.0 and above +- macOS 12.0 and above +- tvOS 15.0 and above +- watchOS 9.0 and above + +If you need support for older versions of iOS, macOS, tvOS or watchOS, please use the latest v0.5.x release. ## Installation @@ -45,10 +48,10 @@ To integrate NWWebSocket into your Xcode project using CocoaPods, specify it in ```ruby source 'https://github.com/CocoaPods/Specs.git' -platform :ios, '14.0' +platform :ios, '15.0' use_frameworks! -pod 'NWWebSocket', '~> 0.5.10' +pod 'NWWebSocket', '~> 1.0.0' ``` Then, run the following command: @@ -90,7 +93,7 @@ let package = Package( ], dependencies: [ .package(url: "https://github.com/pusher/NWWebSocket.git", - .upToNextMajor(from: "0.5.10")), + .upToNextMajor(from: "1.0.0")), ], targets: [ .target( From 41e8fe4b714546baa97760e85795ed6544fe6078 Mon Sep 17 00:00:00 2001 From: Mykhailo Grygorenko Date: Thu, 1 Oct 2026 13:19:18 +0300 Subject: [PATCH 2/2] CHANGELOG: show explicit target version in the pending entry heading Matches the convention used in the other 4 repos' pending entries rather than a bare [Unreleased] placeholder. Co-Authored-By: Claude Sonnet 5 --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2f02e6b..5590e9f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). -## [Unreleased](https://github.com/pusher/NWWebSocket/compare/0.5.10...HEAD) +## [1.0.0](https://github.com/pusher/NWWebSocket/compare/0.5.10...1.0.0) - Unreleased ### Changed