·realm-persistence
</>

realm-persistence

dagba/ios-mcp

在 iOS 应用程序中实现 Realm 数据库、遇到线程安全错误、异步/等待崩溃、同步/写入性能问题或与 Codable API 集成时使用

9安装·0热度·@dagba

安装

$npx skills add https://github.com/dagba/ios-mcp --skill realm-persistence

SKILL.md

Realm's thread-confinement model conflicts with Swift Concurrency's thread-hopping. The zero-copy architecture delivers fast reads but causes memory traps in extensions. Wrong patterns cause "accessed from incorrect thread" crashes.

Core principle: Fresh Realm per actor method, batch all writes, never pass objects across threads, avoid Realm in memory-constrained contexts.

Realm objects CAN ONLY be accessed on the thread where Realm was created.

在 iOS 应用程序中实现 Realm 数据库、遇到线程安全错误、异步/等待崩溃、同步/写入性能问题或与 Codable API 集成时使用 来源:dagba/ios-mcp。

查看原文

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/dagba/ios-mcp --skill realm-persistence
分类
</>开发工具
认证
收录时间
2026-02-01
更新时间
2026-02-18

快速解答

什么是 realm-persistence?

在 iOS 应用程序中实现 Realm 数据库、遇到线程安全错误、异步/等待崩溃、同步/写入性能问题或与 Codable API 集成时使用 来源:dagba/ios-mcp。

如何安装 realm-persistence?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/dagba/ios-mcp --skill realm-persistence 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用

这个 Skill 的源码在哪?

https://github.com/dagba/ios-mcp