# 使用 Homebrew 安装 objc-run

查看 objc-run 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:objc-run
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install objc-run
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:objc-run
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/objc-run>
- **版本:** 1.4
- **来源摘要:** Use Objective-C files for shell script-like tasks
- **主页:** <https://github.com/iljaiwas/objc-run>
- **仓库:** <https://github.com/iljaiwas/objc-run>
- **许可证:** MIT
- **源码归档:** <https://github.com/iljaiwas/objc-run/archive/refs/tags/1.4.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- objc-run (cli)
- objc-run (别名)

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 all

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.4
- 本地数据: OK
- 上游仓库: https://github.com/iljaiwas/objc-run
- 检测到的最新版本: 1.4 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

objc-run is a shell script that compiles and executes Objective-C source files so they can be used for small macOS scripting-style tasks without creating an Xcode project. Its README describes it as suitable for jobs such as manipulating plist files and as similar to CodeRunner without a user interface.

### 项目历史

The GitHub repository was created on 2014-01-03, with a short burst of activity through early 2014 and tags from 1.0 to 1.4. The repository metadata recorded the last push on 2014-02-10, making it a compact, stable script rather than a long-running framework.

The project wrapped the native Objective-C compiler flow behind a single executable and added two conveniences: shebang-style execution with `#!/usr/bin/env objc-run`, and CocoaPods integration by embedding a Podfile section inside a C comment in the Objective-C source file.

### 采用历史

The GitHub repository metadata recorded 424 stars and 13 forks, which is meaningful for a single shell script in the Objective-C tooling niche. Homebrew core packaged version 1.4 as a macOS-only formula with one executable and recorded 31 installs over 365 days in the 2026-07-01 formula JSON.

### 使用方式

A user runs `objc-run myfile.m arg1 arg2`; the script compiles `myfile.m` into a temporary application named after the source file, launches it with the remaining arguments, and removes the compiled output after execution. With a shebang line and executable bit, the `.m` file can be invoked directly from the terminal.

The CocoaPods feature made the script more useful for small Objective-C programs that wanted third-party libraries without a full project setup: the source file could include pod declarations between `podfile-start` and `podfile-end` markers.

### 为什么软件包爱好者会关心

objc-run is a small but telling package: it treats Objective-C as a shell-scripting language for Mac automation. For av.db, it belongs with developer conveniences that expose a platform compiler in one command rather than building a new language runtime or project template.

### 时间线

- 2014-01-03: the public GitHub repository was created.
- 2014-02-10: GitHub API metadata recorded the repository's last push.
- 2026-07-01: Homebrew core formula metadata listed stable version 1.4.

### Related projects

- objc-run is tied to clang/Xcode command-line compilation, CocoaPods, macOS Foundation/Cocoa scripting, and small Objective-C command-line programs. It overlaps in spirit with tools such as CodeRunner, but it stays as a terminal script.

### 来源

- <https://api.github.com/repos/iljaiwas/objc-run>
- <https://api.github.com/repos/iljaiwas/objc-run/tags>
- <https://formulae.brew.sh/api/formula/objc-run.json>
- <https://github.com/iljaiwas/objc-run>
- <https://raw.githubusercontent.com/iljaiwas/objc-run/master/ReadMe.md>


## 安全说明

generalized runtime or code generation signal.

- **Geiger 风险:** yellow / 中
- generalized runtime or code generation signal

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** objc-run
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Requirements:** macos
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [rust-script](https://pkg.so/zh-hans/brew/rust-script/) - Shares pkgdb curated category or tags: cli, developer-tools, scripting.
- [swift-sh](https://pkg.so/zh-hans/brew/swift-sh/) - Shares pkgdb curated category or tags: cli, developer-tools, scripting.
- [attempt-cli](https://pkg.so/zh-hans/brew/attempt-cli/) - Shares pkgdb curated category or tags: cli, developer-tools, scripting.
- [scriptisto](https://pkg.so/zh-hans/brew/scriptisto/) - Shares pkgdb curated category or tags: cli, developer-tools, scripting.
- [mogenerator](https://pkg.so/zh-hans/brew/mogenerator/) - Shares pkgdb curated category or tags: cli, developer-tools, macos, objective-c.
- [zapp](https://pkg.so/zh-hans/brew/zapp/) - Shares pkgdb curated category or tags: cli, developer-tools, macos.
- [cocoapods](https://pkg.so/zh-hans/brew/cocoapods/) - Shares pkgdb curated category or tags: cli, developer-tools, macos.
- [fish](https://pkg.so/zh-hans/brew/fish/) - Shares pkgdb curated category or tags: cli, developer-tools, scripting.
- [objc-codegenutils](https://pkg.so/zh-hans/brew/objc-codegenutils/) - Package names and metadata indicate a similar tool family. Shared terms: cli, developer, developer-tools, objc, objective.
- [ccls](https://pkg.so/zh-hans/brew/ccls/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, objc, objective.

## Combined YAML source

View the package source record on GitHub. [combined/objc-run.yml](https://github.com/mxcl/pkgdb/blob/main/combined/objc-run.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
