快速
- 作者仓库星标 0
- 作者仓库 skills-registry
- 领域
- 通用
- 作者声明的智能体
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 88 / 100 · 启发式扫描,不代表运行安全
- 运行环境证据
- 未执行;当前没有隔离运行测试证据
- 作者 / 版本 / 许可证
- @tomevault-io · 未声明许可证
- 上下文用量评级
- 低消耗
- 接入复杂程度
- 即装即用
- 是否需要外部接口密钥
- 不需要
- 兼容的系统
- 未声明(默认跨平台)
- 运行环境要求
- 未检出明确要求
- 检测到的文件与系统行为
-
- 只读
- 网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
需要注意: 未声明工具权限范围;实际权限由运行环境决定。
# Objective-C / Swift & repo layout – Contentstack iOS Persistence
## When to use
- You add or rename `.h` / `.m` files under `ContentstackPersistence/`, `ContentstackPersistenceCoredata/`, or `ContentstackPersistenceRealm/`
- You expose symbols to Swift consumers (`@import` / `import` patterns in README)
- You align with existing naming and module structure
## Instructions
### Language
- **Primary implementation language:** Objective-C (`.m` / `.h`).
- **Swift:** Documented in [README.md](../../README.md) via module imports; keep public APIs Objective-C–friendly (`NS_SWIFT_NAME` only if you introduce names that need Swift polish—follow existing project style).
### Layout (by folder)
| Path | Role |
| --- | --- |
| `ContentstackPersistence/` | Core framework: `SyncManager`, `PersistenceModel`, protocols, umbrella `ContentstackPersistence.h` |
| `ContentstackPersistenceCoredata/` | Core Data store implementation |
| `ContentstackPersistenceRealm/` | Realm store implementation |
| `ContentstackPersistenceTests/` | XCTest sources |
### Headers and modules
- Public API is driven by **`s.public_header_files`** in each podspec—new public headers must be listed there.
- Keep umbrella / main header includes predictable; consumers may use `#import <Module/Module.h>` or `@import Module`.
### Naming and style
- Match existing patterns: Objective-C naming, file names aligned with class names (e.g. `SyncManager.h` / `SyncManager.m`).
- Avoid drive-by reformatting unrelated code in the same change as feature work.
## References
- [contentstack-ios-persistence-sdk](../contentstack-ios-persistence-sdk/SKILL.md)
- [testing](../testing/SKILL.md)
---
> Source: [contentstack/contentstack-ios-persistence](https://github.com/contentstack/contentstack-ios-persistence) — distributed by [TomeVault](https://tomevault.io).
<!-- tomevault:4.0:skill_md:2026-05-23 -->
章节与文件索引
按说明文件中的顺序排列。
何时使用
语言
布局(按文件夹)
标头和模块
命名和风格
文件/命令 -> ContentstackPersistence/ · ContentstackPersistenceCoredata/ · ContentstackPersistenceRealm/ · @import · import · NS_SWIFT_NAME · SyncManager · PersistenceModel
内容校验值 -> 3e658d670e32
当前原文的自动摘译,尚未人工审校。
何时使用
您添加或重命名
.h/.m文件下ContentstackPersistence/,ContentstackPersistenceCoredata/, 或ContentstackPersistenceRealm/您向 Swift 消费者公开符号(@import/import自述文件中的模式)与现有的命名和模块结构保持一致语言
主要实现语言:Objective-C (
.m/.h)。 Swift:通过模块导入记录在 README.md 中;保持公共 API Objective-C 友好(NS_SWIFT_NAME仅当您引入需要 Swift 修饰的名称时 - 遵循现有的项目风格)。布局(按文件夹)
路径·角色
ContentstackPersistence/· 核心框架:SyncManager,PersistenceModel, 协议, 伞ContentstackPersistence.hContentstackPersistenceCoredata/· 核心数据存储实现ContentstackPersistenceRealm/· 领域商店实施ContentstackPersistenceTests/· XCTest 源码标头和模块
公共API由以下驱动
s.public_header_files在每个 podspec 中,必须在其中列出新的公共标头。保持伞/主标题包含可预测的内容;消费者可能会使用#import <Module/Module.h>或@import Module。命名和风格
匹配现有模式:Objective-C 命名、文件名与类名对齐(例如
SyncManager.h/SyncManager.m)。避免在与功能工作相同的更改中偷偷地重新格式化不相关的代码。