Crash on Real Device at Launch: dyld Symbol Not Found for ChatChannelListViewModel.handleHideTabBar
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 45/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Tranquilla
- Stack tecnologico
- swift
- Ambito
- mobile-dev
Direzione di ricerca
Inizia da Sources/StreamChatSwiftUI/ChatChannelList/ChatChannelListViewModel.swift e analizza la registrazione del selector di NotificationCenter per handleHideTabBar. Riproduci quindi una build di archive o per device con StreamChatSwiftUI 5.5.0 o 5.6.0, poi verifica se il metodo viene emesso come weak external symbol. Il lavoro è completato quando l’app si avvia su un dispositivo fisico senza il dyld symbol-not-found crash.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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?
- Lingua principale
- Swift
- Stelle
- 975
- Fork
- 236
- Merge medio
- 1g 11h
- PR unite (30g)
- 46
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di GetStream/stream-chat-swift
-
[Bug]: iOS SDK player remains stuck loading a WebM attachment sent by an Android SDK clientForse già presa @mvanhorn l’ha presa 65 giorni fa. Aperta🐞 Bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 55/100
GetStream/stream-chat-swift#4281 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 55/100
GetStream/stream-chat-swift#4190 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug]: Voice recording doesnt stop sometimes when user plays an recording or opens an attachmentAperta🐞 Bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 38/100
GetStream/stream-chat-swift#3678 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di GetStream/stream-chat-swift
Issue simili
-
good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
expo/exact#1716 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug priority:low status:queued
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Insights trim drops today's rollups before newer DNS answers during a DNS floodForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertabug priority:low status:in-progress
Difficoltà 2/5 Mezza giornata Idoneità per principianti 67/100
isaaclins/freesnitch#588 ·
I maintainer di solito rispondono entro 1 giorno
-
bug P2: medium
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
leepokai/Codync#618 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno