From 872791ba36870e7d099eb56250b452bb1a75d05d Mon Sep 17 00:00:00 2001 From: Nan Date: Mon, 21 Sep 2026 11:37:50 -0700 Subject: [PATCH] chore: [SDK-5280] raise minimum iOS version to 15 Xcode 27 rejects deployment targets below iOS 15 and the next OneSignal iOS SDK release raises its minimum to 15. A wrapper that declares a lower minimum than the native SDK it depends on cannot be integrated, so it moves with it. Apps that target iOS 12 to 14 can no longer use this SDK. --- README.md | 2 +- com.onesignal.unity.ios/Editor/BuildPostProcessor.cs | 2 +- examples/demo-no-location/run-ios.sh | 2 +- examples/demo/Assets/OneSignal/README.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 7abacb07..23633db6 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ And via many additional platforms. [Check them all out](https://documentation.on - iOS Builds: CocoaPods 1.11.3 or newer - In order to test push notifications you will need - An Android 7 or newer device or emulator with "Google Play Store (Services)" installed - - An iOS 12 or newer device (iPhone, iPad, or iPod Touch) + - An iOS 15 or newer device (iPhone, iPad, or iPod Touch) ### Push Notification Credentials You must generate the appropriate credentials for the platform(s) you are releasing on: diff --git a/com.onesignal.unity.ios/Editor/BuildPostProcessor.cs b/com.onesignal.unity.ios/Editor/BuildPostProcessor.cs index 3a93ad29..82626a51 100644 --- a/com.onesignal.unity.ios/Editor/BuildPostProcessor.cs +++ b/com.onesignal.unity.ios/Editor/BuildPostProcessor.cs @@ -219,7 +219,7 @@ private void AddNotificationServiceExtension() // Makes it so that the extension target is Universal (not just iPhone) _project.SetBuildProperty(extensionGuid, "TARGETED_DEVICE_FAMILY", "1,2"); - _project.SetBuildProperty(extensionGuid, "IPHONEOS_DEPLOYMENT_TARGET", "12.0"); + _project.SetBuildProperty(extensionGuid, "IPHONEOS_DEPLOYMENT_TARGET", "15.0"); _project.SetBuildProperty(extensionGuid, "SWIFT_VERSION", "5.0"); _project.SetBuildProperty( extensionGuid, diff --git a/examples/demo-no-location/run-ios.sh b/examples/demo-no-location/run-ios.sh index c3f1bed7..c5eae5fe 100755 --- a/examples/demo-no-location/run-ios.sh +++ b/examples/demo-no-location/run-ios.sh @@ -104,7 +104,7 @@ onesignal_version = next( lines = [ "source 'https://cdn.cocoapods.org/'", "install! 'cocoapods', :disable_input_output_paths => true", - "platform :ios, '13.0'", + "platform :ios, '15.0'", "use_frameworks! :linkage => :static", "", ] diff --git a/examples/demo/Assets/OneSignal/README.md b/examples/demo/Assets/OneSignal/README.md index f04a3ecc..5d66fc41 100644 --- a/examples/demo/Assets/OneSignal/README.md +++ b/examples/demo/Assets/OneSignal/README.md @@ -37,7 +37,7 @@ And via many additional platforms. [Check them all out](https://documentation.on - iOS Builds: CocoaPods 1.11.3 or newer - In order to test push notifications you will need - An Android 7 or newer device or emulator with "Google Play Store (Services)" installed - - An iOS 12 or newer device (iPhone, iPad, or iPod Touch) + - An iOS 15 or newer device (iPhone, iPad, or iPod Touch) ### Push Notification Credentials You must generate the appropriate credentials for the platform(s) you are releasing on: