objc 代码编写
- 作者仓库星标 0
- 作者仓库 skills-registry
Objective-C / Swift & repo layout – Contentstack iOS Persistence
When to use
- You add or rename
.h/.mfiles underContentstackPersistence/,ContentstackPersistenceCoredata/, orContentstackPersistenceRealm/ - You expose symbols to Swift consumers (
@import/importpatterns in README) - You align with existing naming and module structure
Instructions
Language
- Primary implementation language: Objective-C (
.m/.h). - Swift: Documented in README.md via module imports; keep public APIs Objective-C–friendly (
NS_SWIFT_NAMEonly 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_filesin 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
<!-- tomevault:4.0:skill_md:2026-05-23 -->Source: contentstack/contentstack-ios-persistence — distributed by TomeVault.
- 流狐分类
- 通用
- 作者声明 Agent
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 88 / 100 · 启发式扫描,不代表运行安全
- 作者 / 版本 / 许可
- @tomevault-io · 未声明 license
- 流狐 Token 估算
- 低消耗
- 流狐接入估算
- 即装即用
- 是否需要外部 API Key
- 未发现要求
- 检测到的系统要求
- 未声明
- 底层运行要求
- 未声明
- 检测到的文件与系统行为
-
- 只读
- 检测到的网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
作者没有在当前 SKILL.md 中定义固定输出样例。 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
Primary implementation language: Objective-C (.m / .h). Swift: Documented in README.md via module imports; keep public APIs Objective-C–friendly (NSSWIFTNAME only if you introduce names that need Swift polish—follow existing project style).
Path · Role ContentstackPersistence/ · Core framework: SyncManager, PersistenceModel, protocols, umbrella ContentstackPersistence.h ContentstackPersistenceCoredata/ · Core Data store implementation
Public API is driven by s.publicheaderfiles 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.
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.
# 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)
---
… 作者原文负责流程事实;流狐只索引当前章节、要点、文件与命令。
章节 -> When to use → Instructions → Language → Layout (by folder) → Headers and modules → Naming and style
要点 -> Primary implementation language · Swift · s.publicheaderfiles · - Primary implementation language: Objective-C (.m / .h). · - Public API is driven by s.publicheaderfiles in each podspec—new public headers must be listed there. · - Match existing patterns: Objective-C naming, file names aligned with class names (e.g.
文件/命令 -> ContentstackPersistence/ · ContentstackPersistenceCoredata/ · ContentstackPersistenceRealm/ · @import · import · NSSWIFTNAME · SyncManager · PersistenceModel
内容 SHA-256 -> 3e658d670e32
原文结构
适用与边界
原文中的明确线索
ContentstackPersistence/、ContentstackPersistenceCoredata/、ContentstackPersistenceRealm/、@import、import、NSSWIFTNAME、SyncManager、PersistenceModel