Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 0 additions & 3 deletions .github/actions/xcode-cache/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,3 @@ runs:
path: spm_cache
key: ${{ env.IMAGE }}-spm-${{ hashFiles('**/Package.resolved') }}
restore-keys: ${{ env.IMAGE }}-spm-
- uses: mikehardy/buildcache-action@v2
with:
cache_key: ${{ env.IMAGE }}-buildcache-
61 changes: 26 additions & 35 deletions .github/workflows/cron-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,33 +21,28 @@ jobs:
strategy:
matrix:
include:
- ios: 18.5
xcode: 16.4
os: macos-15
- ios: "26.0"
device: "iPhone 17 Pro"
setup_runtime: false
- ios: "18.5"
device: "iPhone 16 Pro"
setup_runtime: false
- ios: 17.5
xcode: 15.4
os: macos-14
- ios: "17.5"
device: "iPhone 15 Pro"
setup_runtime: false
- ios: 16.4
xcode: 15.3 # fails on 15.4
os: macos-14
setup_runtime: true
- ios: "16.4"
device: "iPhone 14 Pro"
setup_runtime: true
- ios: 15.5
xcode: 15.3 # fails on 15.4
os: macos-14
- ios: "15.5"
device: "iPhone 13 Pro"
setup_runtime: true
fail-fast: false
runs-on: ${{ matrix.os }}
runs-on: macos-15
env:
GITHUB_EVENT: ${{ toJson(github.event) }}
ALLURE_TOKEN: ${{ secrets.ALLURE_TOKEN }}
STREAM_DEMO_APP_SECRET: ${{ secrets.STREAM_DEMO_APP_SECRET }}
XCODE_VERSION: ${{ matrix.xcode }}
XCODE_VERSION: "26.0.1"
IOS_SIMULATOR_DEVICE: "${{ matrix.device }} (${{ matrix.ios }})" # For the Allure report
steps:
- uses: actions/[email protected]
Expand Down Expand Up @@ -94,30 +89,25 @@ jobs:
strategy:
matrix:
include:
- ios: 18.5
xcode: 16.4
os: macos-15
- ios: "26.0"
device: "iPhone 17 Pro"
setup_runtime: false
- ios: "18.5"
device: "iPhone 16 Pro"
setup_runtime: false
- ios: 17.5
xcode: 15.4
os: macos-14
- ios: "17.5"
device: "iPhone 15 Pro"
setup_runtime: false
- ios: 16.4
xcode: 15.3 # fails on 15.4
os: macos-14
setup_runtime: true
- ios: "16.4"
device: "iPhone 14 Pro"
setup_runtime: true
- ios: 15.5
xcode: 15.3 # fails on 15.4
os: macos-14
- ios: "15.5"
device: "iPhone 13 Pro"
setup_runtime: true
fail-fast: false
runs-on: ${{ matrix.os }}
runs-on: macos-15
env:
XCODE_VERSION: ${{ matrix.xcode }}
XCODE_VERSION: "26.0.1"
steps:
- uses: actions/[email protected]
- uses: ./.github/actions/bootstrap
Expand Down Expand Up @@ -147,24 +137,25 @@ jobs:
fastlane/test_output/logs/*/Diagnostics/simctl_diagnostics/DiagnosticReports/*

build-old-xcode:
name: Build LLC + UI (Xcode 15)
name: Build LLC + UI (Old Xcode)
runs-on: macos-14
env:
XCODE_VERSION: "15.4"
XCODE_VERSION: "16.1"
steps:
- name: Connect Bot
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.BOT_SSH_PRIVATE_KEY }}
- uses: actions/[email protected]
- uses: ./.github/actions/xcode-cache
- uses: ./.github/actions/ruby-cache
- name: List Xcode versions
run: mdfind "kMDItemCFBundleIdentifier = 'com.apple.dt.Xcode'"
- name: Build LLC
run: bundle exec fastlane test device:"iPhone 8" build_for_testing:true
run: bundle exec fastlane test device:"iPhone 16" build_for_testing:true
timeout-minutes: 25
- name: Build UI
run: bundle exec fastlane test_ui device:"iPhone 8" build_for_testing:true
run: bundle exec fastlane test_ui device:"iPhone 16" build_for_testing:true
timeout-minutes: 25
- name: Build XCFrameworks
run: bundle exec fastlane build_xcframeworks
Expand All @@ -177,7 +168,7 @@ jobs:
name: Automated Code Review
runs-on: macos-14
env:
XCODE_VERSION: "15.4"
XCODE_VERSION: "16.1"
steps:
- uses: actions/[email protected]
- uses: ./.github/actions/bootstrap
Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/smoke-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ concurrency:

env:
HOMEBREW_NO_INSTALL_CLEANUP: 1 # Disable cleanup for homebrew, we don't need it on CI
IOS_SIMULATOR_DEVICE: "iPhone 16 Pro (18.5)"
IOS_SIMULATOR_DEVICE: "iPhone 17 Pro (26.0)"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_PR_NUM: ${{ github.event.pull_request.number }}

Expand Down Expand Up @@ -48,7 +48,7 @@ jobs:
name: Automated Code Review
runs-on: macos-14
env:
XCODE_VERSION: "15.4"
XCODE_VERSION: "16.1"
if: ${{ github.event.inputs.record_snapshots != 'true' }}
steps:
- uses: actions/[email protected]
Expand All @@ -63,21 +63,22 @@ jobs:
if: startsWith(github.event.pull_request.head.ref, 'release/')

build-old-xcode:
name: Build LLC + UI (Xcode 15)
name: Build SDKs (Old Xcode)
runs-on: macos-14
if: ${{ github.event.inputs.record_snapshots != 'true' }}
env:
XCODE_VERSION: "15.4"
XCODE_VERSION: "16.1"
steps:
- uses: actions/[email protected]
- uses: ./.github/actions/xcode-cache
- uses: ./.github/actions/ruby-cache
- name: List Xcode versions
run: mdfind "kMDItemCFBundleIdentifier = 'com.apple.dt.Xcode'"
- name: Build LLC
run: bundle exec fastlane test device:"iPhone 13" build_for_testing:true
run: bundle exec fastlane test device:"iPhone 16" build_for_testing:true
timeout-minutes: 25
- name: Build UI
run: bundle exec fastlane test_ui device:"iPhone 13" build_for_testing:true
run: bundle exec fastlane test_ui device:"iPhone 16" build_for_testing:true
timeout-minutes: 25

test-llc-debug:
Expand Down Expand Up @@ -179,6 +180,8 @@ jobs:
- build-test-app-and-frameworks
env:
LAUNCH_ID: ${{ needs.allure_testops_launch.outputs.launch_id }}
IOS_SIMULATOR_DEVICE: "iPhone 16 Pro (18.5)" # TODO: IOS-1181
XCODE_VERSION: "16.4" # TODO: IOS-1181
strategy:
matrix:
batch: [0, 1]
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ _October 07, 2025_
- Add `ChatChannelController.setPushPreference(level:)`
- Add `ChatChannelController.snoozePushNotifications(until:)`

## ⚠️ Important
- From now on, our XCFrameworks will be built with Swift 5.9. In order to use them, you need Xcode 15 or above.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we use we use 5.10 like Package.swift?


# [4.89.0](https://github.com/GetStream/stream-chat-swift/releases/tag/4.89.0)
_September 22, 2025_

Expand Down
1 change: 0 additions & 1 deletion Githubfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ export ALLURECTL_VERSION='2.16.0'
export XCRESULTS_VERSION='1.19.1'
export YEETD_VERSION='1.0'
export GCLOUD_VERSION='464.0.0'
export MINT_VERSION='0.17.5'
export SONAR_VERSION='6.2.1.4610'
export IPSW_VERSION='3.1.592'
export INTERFACE_ANALYZER_VERSION='1.0.7'
Expand Down
7 changes: 5 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version:5.7
// swift-tools-version:5.10

import Foundation
import PackageDescription
Expand Down Expand Up @@ -31,7 +31,10 @@ let package = Package(
.target(
name: "StreamChat",
exclude: ["Info.plist"],
resources: [.copy("Database/StreamChatModel.xcdatamodeld")]
resources: [.copy("Database/StreamChatModel.xcdatamodeld")],
swiftSettings: [
.unsafeFlags(["-Osize"], .when(configuration: .release))
]
),
.target(
name: "StreamChatUI",
Expand Down
10 changes: 9 additions & 1 deletion StreamChat-XCFramework.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Pod::Spec.new do |spec|
spec.author = { 'getstream.io' => '[email protected]' }
spec.social_media_url = 'https://getstream.io'

spec.swift_version = '5.7'
spec.swift_version = '5.9'
spec.ios.deployment_target = '13.0'
spec.requires_arc = true

Expand All @@ -22,4 +22,12 @@ Pod::Spec.new do |spec|
spec.preserve_paths = "#{spec.module_name}.xcframework/*"

spec.cocoapods_version = '>= 1.11.0'

spec.pod_target_xcconfig = {
'SWIFT_OPTIMIZATION_LEVEL' => '-Osize'
}

spec.user_target_xcconfig = {
'SWIFT_OPTIMIZATION_LEVEL' => '-Osize'
}
end
10 changes: 9 additions & 1 deletion StreamChat.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Pod::Spec.new do |spec|
spec.author = { 'getstream.io' => '[email protected]' }
spec.social_media_url = 'https://getstream.io'

spec.swift_version = '5.7'
spec.swift_version = '5.9'
spec.ios.deployment_target = '13.0'
spec.osx.deployment_target = '11.0'
spec.requires_arc = true
Expand All @@ -21,4 +21,12 @@ Pod::Spec.new do |spec|
spec.source = { git: 'https://github.com/GetStream/stream-chat-swift.git', tag: "#{spec.version}" }
spec.source_files = ['Sources/StreamChat/**/*.swift']
spec.resource_bundles = { 'StreamChat' => ['Sources/StreamChat/**/*.xcdatamodeld'] }

spec.pod_target_xcconfig = {
'SWIFT_OPTIMIZATION_LEVEL' => '-Osize'
}

spec.user_target_xcconfig = {
'SWIFT_OPTIMIZATION_LEVEL' => '-Osize'
}
end
1 change: 1 addition & 0 deletions StreamChat.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -14254,6 +14254,7 @@
"PROVISIONING_PROFILE_SPECIFIER[sdk=macosx*]" = "";
SKIP_INSTALL = YES;
SUPPORTED_PLATFORMS = "iphonesimulator iphoneos macosx";
SWIFT_OPTIMIZATION_LEVEL = "-Osize";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we really change it since default is speed and most customers use default value. It just makes the size metric better for the report, but in reality customers get the speed optimized binary. Should we try to make some types to classes instead which bloat the binary size?

SWIFT_VERSION = 5.0;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

Align Swift language version with the PR’s minimum Swift bump.

This target still declares SWIFT_VERSION = 5.0;. Please raise it to the new minimum (e.g., 5.9) and keep it consistent across all targets/configurations to avoid mismatched language modes between SPM, CocoaPods, and the Xcode project.

Apply this change here:

-				SWIFT_VERSION = 5.0;
+				SWIFT_VERSION = 5.9;

Then audit the repo for any stragglers:


🏁 Script executed:

#!/bin/bash
# Find all SWIFT_VERSION occurrences and show surrounding context
rg -n -C2 'SWIFT_VERSION\s*=\s*' \
  StreamChat.xcodeproj/project.pbxproj \
  -g '!*DerivedData*'

# Check Package.swift and podspecs declare the same minimum Swift
fd -t f -a --hidden 'Package.swift|*.podspec|*.xcconfig'
rg -n 'swift-tools-version|swift_version' -g 'Package.swift|**/*.podspec|**/*.xcconfig'

Length of output: 12877


🏁 Script executed:

#!/bin/bash
# Find Package.swift and podspec files properly
find . -name "Package.swift" -type f 2>/dev/null | head -20
find . -name "*.podspec" -type f 2>/dev/null | head -20

Length of output: 127


🏁 Script executed:

#!/bin/bash
# Check swift-tools-version in Package.swift
echo "=== Package.swift swift-tools-version ==="
rg -n 'swift-tools-version|swiftLanguageVersions' Package.swift

# Check s.swift_version in podspec files
echo -e "\n=== Podspec swift_version declarations ==="
rg -n 's\.swift_version' StreamChat.podspec StreamChatUI.podspec

# Also check for any version metadata
echo -e "\n=== StreamChat.podspec version lines ==="
head -20 StreamChat.podspec | rg -n 'version|swift'

echo -e "\n=== StreamChatUI.podspec version lines ==="
head -20 StreamChatUI.podspec | rg -n 'version|swift'

Length of output: 651


Align Swift language version with SPM and CocoaPods minimums.

The Xcode project declares SWIFT_VERSION = 5.0 across 60+ target configurations, while Package.swift specifies 5.10 and both StreamChat.podspec and StreamChatUI.podspec specify 5.9. This creates inconsistency across build systems. Update all instances from 5.0 to 5.9 to align with CocoaPods and maintain compatibility with SPM.

Apply this change across all 60+ occurrences in StreamChat.xcodeproj/project.pbxproj:

-				SWIFT_VERSION = 5.0;
+				SWIFT_VERSION = 5.9;

Verify the update by running:

#!/bin/bash
rg -n 'SWIFT_VERSION\s*=\s*' StreamChat.xcodeproj/project.pbxproj | grep -v 5.9
🤖 Prompt for AI Agents
In StreamChat.xcodeproj/project.pbxproj around line 14258, update all
occurrences of "SWIFT_VERSION = 5.0" to "SWIFT_VERSION = 5.9" (there are 60+
target configurations) so the Xcode project matches the Swift versions declared
in Package.swift (5.10) and the podspecs (5.9); perform a global replace across
that pbxproj file and verify no remaining "SWIFT_VERSION" entries contain 5.0.

TARGETED_DEVICE_FAMILY = "1,2";
};
Expand Down
2 changes: 1 addition & 1 deletion StreamChatUI-XCFramework.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Pod::Spec.new do |spec|
spec.author = { 'getstream.io' => '[email protected]' }
spec.social_media_url = 'https://getstream.io'

spec.swift_version = '5.7'
spec.swift_version = '5.9'
spec.platform = :ios, '13.0'
spec.requires_arc = true

Expand Down
33 changes: 17 additions & 16 deletions StreamChatUI.podspec
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
Pod::Spec.new do |spec|
spec.name = "StreamChatUI"
spec.version = "4.90.0"
spec.summary = "StreamChat UI Components"
spec.description = "StreamChatUI SDK offers flexible UI components able to display data provided by StreamChat SDK."
spec.name = 'StreamChatUI'
spec.version = '4.90.0'
spec.summary = 'StreamChat UI Components'
spec.description = 'StreamChatUI SDK offers flexible UI components able to display data provided by StreamChat SDK.'

spec.homepage = "https://getstream.io/chat/"
spec.license = { :type => "BSD-3", :file => "LICENSE" }
spec.author = { "getstream.io" => "[email protected]" }
spec.social_media_url = "https://getstream.io"
spec.homepage = 'https://getstream.io/chat/'
spec.license = { type: 'BSD-3', file: 'LICENSE' }
spec.author = { 'getstream.io' => '[email protected]' }
spec.social_media_url = 'https://getstream.io'

spec.swift_version = '5.7'
spec.platform = :ios, "13.0"
spec.swift_version = '5.9'
spec.platform = :ios, '13.0'
spec.requires_arc = true

spec.framework = "Foundation", "UIKit"
spec.framework = 'Foundation', 'UIKit'

spec.module_name = "StreamChatUI"
spec.source = { :git => "https://github.com/GetStream/stream-chat-swift.git", :tag => "#{spec.version}" }
spec.source_files = ["Sources/StreamChatUI/**/*.swift", "Sources/StreamNuke/**/*.swift", "Sources/StreamSwiftyGif/**/*.swift"]
spec.resource_bundles = { "StreamChatUIResources" => ["Sources/StreamChatUI/Resources/**/*"] }
spec.module_name = 'StreamChatUI'
spec.source = { git: 'https://github.com/GetStream/stream-chat-swift.git', tag: "#{spec.version}" }
spec.source_files = ['Sources/StreamChatUI/**/*.swift', 'Sources/StreamNuke/**/*.swift',
'Sources/StreamSwiftyGif/**/*.swift']
spec.resource_bundles = { 'StreamChatUIResources' => ['Sources/StreamChatUI/Resources/**/*'] }

spec.dependency "StreamChat", "#{spec.version}"
spec.dependency 'StreamChat', "#{spec.version}"
end
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading