Include the iOS state file in the debug bundle

addStateFile() resolved the state path via ServiceManager.GetStatePath(),
which on iOS points at a hard-coded default that does not exist in the app
sandbox, so the state file was silently skipped.

Add an optional StatePath to GeneratorDependencies and use it when set,
falling back to the ServiceManager default otherwise. The iOS DebugBundle
passes the client's actual state file path (the App Group profile state),
matching the Android bundle which includes the state file.
This commit is contained in:
Zoltán Papp
2026-05-27 15:55:10 +02:00
parent 485fa06c94
commit 557b611b02
2 changed files with 9 additions and 2 deletions
+1
View File
@@ -217,6 +217,7 @@ func (c *Client) DebugBundle(anonymize bool) (string, error) {
InternalConfig: cfg,
StatusRecorder: c.recorder,
TempDir: c.cacheDir,
StatePath: c.stateFile,
}
if cc != nil {