macOS
brew install mogeneratorlocal Homebrew formula metadata
sudo port install mogeneratorMacPorts ports tree · devel/mogenerator/Portfile · 来源: api.github.com
安装
brew install mogeneratorlocal Homebrew formula metadata
sudo port install mogeneratorMacPorts ports tree · devel/mogenerator/Portfile · 来源: api.github.com
概览
Generate Objective-C & Swift classes from your Core Data model
历史
mogenerator is Jonathan 'Wolf' Rentzsch's Core Data code generator, with project source copyright notices dating the codebase to 2006-2019. Its core idea is the two-class pattern for each Core Data entity: a generated machine-owned class such as _MyEntity that can be overwritten to match the model, and a human-owned subclass such as MyEntity where app-specific logic lives. That split made it attractive to Objective-C Mac and iOS developers who wanted generated accessors and constants without losing hand-written business logic every time the model changed.
The project became a notable tool in the Cocoa/Core Data ecosystem. Its README describes the command-line workflow around .xcdatamodel files, and a 2012 Edge Cases episode presented it as a popular open source Core Data code generation tool. In practice, developers ran mogenerator manually, from scripts, or from Xcode build phases to keep generated Objective-C classes synchronized with a Core Data model.
Major milestones tracked in the project's version history include the 2014 v1.28 release adding a --v2 argument for modern defaults and experimental Swift code generation, v1.29 adding a built-in model compiler instead of relying on Xcode's momc, v1.30 making modern Objective-C and Swift defaults while adding bundled Swift 2 templates, and v1.31 adding Swift 3 support. Later releases added support for newer Core Data property types, nullability annotations, Swift fetchRequest generation, and more template metadata.
Its package-manager niche is narrow but durable: a macOS developer CLI for legacy and long-lived Core Data projects, adjacent to Xcode's own model tooling but more opinionated about generated code ownership.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
mogenerator | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/rentzsch/mogenerator
安装元数据
| 软件包键 | brew:mogenerator |
|---|---|
| 版本 | 1.32 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/mogenerator |
| 主页 | https://rentzsch.github.io/mogenerator/ |
| 仓库 | https://github.com/rentzsch/mogenerator |
| 上游文档 | https://github.com/rentzsch/mogenerator#readme |
| 许可证 | MIT |
| 源码归档 | https://github.com/rentzsch/mogenerator/archive/refs/tags/1.32.tar.gz |
| Bottle | 可用 (于 arm64_big_sur, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | mogenerator |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Requirements |
|
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
mogenerator
sudo port install mogenerator来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.