Skip to content

Fix isolated SwiftData storage and legacy migration - #2

Merged
ZOB2077 merged 1 commit into
mainfrom
agent/fix-isolated-swiftdata-store
Jul 16, 2026
Merged

Fix isolated SwiftData storage and legacy migration#2
ZOB2077 merged 1 commit into
mainfrom
agent/fix-isolated-swiftdata-store

Conversation

@ZOB2077

@ZOB2077 ZOB2077 commented Jul 16, 2026

Copy link
Copy Markdown
Owner

Summary

  • move production SwiftData storage from the shared Application Support/default.store path into Application Support/com.gridnote.app/Gridnote.store
  • migrate compatible v1.0.0 stores through a read-only SQLite snapshot with schema and integrity validation
  • force XCTest host launches to use in-memory persistence
  • bump the application to v1.0.1 (build 11) and document the upgrade

Root cause

Unsandboxed SwiftData apps can resolve the default store to the same user-level Application Support/default.store. Gridnote and icloudmailagent opened that shared path with incompatible models, allowing the Gridnote schema to be replaced.

Validation

  • all GridnoteTests unit tests pass
  • Release build succeeds with Xcode 27 beta
  • repository hygiene check passes
  • DMG verifies successfully
  • ZIP contains Gridnote 1.0.1 with a valid ad-hoc signature

UI automation was intentionally skipped because it triggers macOS permission prompts and is not required for this persistence-only change.

@ZOB2077
ZOB2077 merged commit 9fadb09 into main Jul 16, 2026
1 check passed
@ZOB2077
ZOB2077 deleted the agent/fix-isolated-swiftdata-store branch July 16, 2026 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant