Crash on Real Device at Launch: dyld Symbol Not Found for ChatChannelListViewModel.handleHideTabBar
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- swift
- Domain
- mobile-dev
Research direction
Start with Sources/StreamChatSwiftUI/ChatChannelList/ChatChannelListViewModel.swift and inspect the NotificationCenter selector registration for handleHideTabBar. Reproduce an archive or device build with StreamChatSwiftUI 5.5.0 or 5.6.0, then inspect whether the method is emitted as a weak external symbol. Done means the app launches on a physical device without the dyld symbol-not-found crash.
Written by the indexing model from the issue text.
Description
Summary
Our iOS app crashes immediately on launch on a physical device when linking StreamChatSwiftUI.
The crash reproduces with both:
stream-chat-swiftui5.5.0stream-chat-swiftui5.6.0
The crash does not reproduce on Simulator.
Environment
- Device: iPhone17,1
- OS: iOS 26.5
- Distribution: TestFlight
- Xcode: 26.5
- Xcode build version: 17F42
StreamChatSwiftUI: reproduced with5.5.0and5.6.0StreamChat: reproduced with matching5.5.0and5.6.0
Crash
Exception Type: EXC_CRASH (SIGABRT)
Termination Reason: DYLD 0
Symbol not found:
_$s17StreamChatSwiftUI0B20ChannelListViewModelC16handleHideTabBar33_0BA79752707C776D439FA23BC72A8AA1LLyyF
Referenced from:
<app executable>
Expected as weak-def export from some loaded dylib
Related Source
The missing symbol appears to correspond to this method in Sources/StreamChatSwiftUI/ChatChannelList/ChatChannelListViewModel.swift:
@objc private func handleHideTabBar() {
hideTabBar = true
}
It is registered as a NotificationCenter selector:
NotificationCenter.default.addObserver(
self,
selector: #selector(handleHideTabBar),
name: NSNotification.Name(hideTabBarNotification),
object: nil
)
Extra Debugging
Inspecting the built device object shows handleHideTabBar as a weak external symbol rather than a concrete definition:
weak external _$s17StreamChatSwiftUI0B20ChannelListViewModelC16handleHideTabBar33_0BA79752707C776D439FA23BC72A8AA1LLyyF
Then dyld fails during launch on the physical device.
Expected Behavior
The app launches on a physical device.
Actual Behavior
The app aborts before app code runs.
Notes
This looks like a device/archive linker or Swift symbol emission issue around a private @objc method used as a selector. Since it reproduces with both 5.5.0 and 5.6.0, it may be triggered by the Xcode 26.5 / Swift toolchain behavior rather than a specific source change in 5.6.0.
Would it be possible to make handleHideTabBar non-private/internal, or replace the selector-based notification observation with closure-based observation to avoid private Swift symbol binding?
- Dominant language
- Swift
- Stars
- 975
- Forks
- 236
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 46
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from GetStream/stream-chat-swift
-
[Bug]: iOS SDK player remains stuck loading a WebM attachment sent by an Android SDK clientPossibly taken @mvanhorn claimed this 65 days ago. Open🐞 Bug
Difficulty 4/5 3-5 days Newbie friendliness 55/100
GetStream/stream-chat-swift#4281 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 55/100
GetStream/stream-chat-swift#4190 · 1 comment ·
Maintainers usually reply within 1 day
-
[Bug]: Voice recording doesnt stop sometimes when user plays an recording or opens an attachmentOpen🐞 Bug
Difficulty 4/5 3-5 days Newbie friendliness 38/100
GetStream/stream-chat-swift#3678 · 1 comment ·
Maintainers usually reply within 1 day
All issues in GetStream/stream-chat-swift
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
bug priority:low status:queued
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Insights trim drops today's rollups before newer DNS answers during a DNS floodPossibly taken A pull request linked to this issue is open or already merged. Openbug priority:low status:in-progress
Difficulty 2/5 Half a day Newbie friendliness 67/100
isaaclins/freesnitch#588 ·
Maintainers usually reply within 1 day
-
bug P2: medium
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
leepokai/Codync#618 · 1 comment ·
Maintainers usually reply within 1 day
-
enhancement good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
floorianmb/tidywise#5 ·