# carthage を Homebrew, MacPorts でインストール

carthage のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:carthage
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install carthage
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install carthage
```

  証拠: MacPorts ports tree: devel/carthage/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

## パッケージ情報

- **パッケージキー:** brew:carthage
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/carthage>
- **バージョン:** 0.40.0
- **ソース概要:** Decentralized dependency manager for Cocoa
- **ホームページ:** <https://github.com/Carthage/Carthage>
- **リポジトリ:** <https://github.com/Carthage/Carthage>
- **ライセンス:** MIT
- **ソースアーカイブ:** <https://github.com/Carthage/Carthage.git>
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- carthage (cli)
- carthage (エイリアス)

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, monterey, sonoma, ventura

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 0.40.0
- ローカルデータ: OK
- 上流リポジトリ: https://github.com/Carthage/Carthage
- 情報: No package-manager update timestamp was available.
- 情報: No cached GitHub release or tag data was available.
## プロジェクトの歴史と使われ方

Carthage is a decentralized dependency manager for Cocoa. Its README says it builds dependencies and provides binary frameworks while leaving project structure and build settings under the developer's control.

### プロジェクトの歴史

The public repository was created in 2014, during the period when Swift and modern Cocoa dependency management were taking shape. Carthage's official pitch was simplicity and decentralization: dependencies are declared in a Cartfile, resolved to exact versions in Cartfile.resolved, and built or downloaded without automatically editing the Xcode project.

### 採用の歴史

Carthage became a major alternative to CocoaPods for iOS and macOS projects that preferred explicit framework integration. Its documentation emphasizes manual Xcode integration, shared schemes, tagged releases, binary framework archives, and reproducible bootstrap through committed Cartfile.resolved files.

### 使われ方

A typical project creates a Cartfile next to its .xcodeproj or .xcworkspace, runs carthage update, then adds built frameworks or XCFrameworks from Carthage/Build into Xcode. Carthage can also checkout dependencies into Carthage/Checkouts, use Git submodules, cache builds, and authenticate binary framework downloads through ~/.netrc when --use-netrc is set.

### パッケージ好きにとっての重要性

Carthage is one of the canonical package-manager stories in Apple development: it rejects project mutation as a feature, relies on Git tags and semantic versions, and treats dependency builds as visible artifacts. For package-manager catalogs, it is a historically important Cocoa tool because it captures a distinct design point from CocoaPods and Swift Package Manager.

### タイムライン

- 2014: Public GitHub repository created.
- 2021: README says version 0.37.0 encouraged XCFrameworks and required them for Apple Silicon Macs.
- 2020s: Documentation describes Cartfile, Cartfile.private, Cartfile.resolved, Carthage/Build, Carthage/Checkouts, and the shared cache under ~/Library/Caches/org.carthage.CarthageKit.

### Related projects

- Official documentation compares Carthage's approach with CocoaPods.
- Carthage operates in the Cocoa, Xcode, Swift, iOS, macOS, tvOS, and watchOS ecosystem.
- Its artifacts and binary-project-specification docs connect it to GitHub releases and HTTPS-hosted framework archives.

### ソース

- <https://api.github.com/repos/Carthage/Carthage>
- <https://github.com/Carthage/Carthage>
- <https://github.com/Carthage/Carthage/tree/master/Documentation>
- <https://github.com/Carthage/Carthage#readme>
- <https://formulae.brew.sh/api/formula/carthage.json>


## セキュリティノート

infrastructure mutation or orchestration signal.

- **Geiger リスク:** orange / 中
- infrastructure mutation or orchestration signal


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ./Cartfile, ./Cartfile.private, ./Cartfile.resolved

## Credential files

- Unix: ~/.netrc
## ソースデータベース詳細

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

## 他のパッケージマネージャ記録

- MacPorts - carthage: normalized package name match | MacPorts ports tree: devel/carthage/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 関連リンク

- [Source-control packages](https://pkg.so/ja/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://pkg.so/ja/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/ja/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/ja/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [cocoapods](https://pkg.so/ja/brew/cocoapods/) - Shares pkgdb curated category or tags: cli, cocoa, dependency-management, dependency-manager, developer-tools.
- [coursier](https://pkg.so/ja/brew/coursier/) - Shares pkgdb curated category or tags: cli, dependency-management, dependency-manager, developer-tools.
- [swift-outdated](https://pkg.so/ja/brew/swift-outdated/) - Shares pkgdb curated category or tags: cli, dependency-management, developer-tools, swift.
- [weaver](https://pkg.so/ja/brew/weaver/) - Shares pkgdb curated category or tags: cli, developer-tools, ios, macos, swift.
- [mint](https://pkg.so/ja/brew/mint/) - Shares pkgdb curated category or tags: cli, dependency-manager, developer-tools, swift.
- [swiftgen](https://pkg.so/ja/brew/swiftgen/) - Shares pkgdb curated category or tags: cli, developer-tools, ios, swift.
- [pipenv](https://pkg.so/ja/brew/pipenv/) - Shares pkgdb curated category or tags: cli, dependency-management, developer-tools.
- [molten-vk](https://pkg.so/ja/brew/molten-vk/) - Shares pkgdb curated category or tags: cli, developer-tools, ios, macos.

## Combined YAML source

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


## ソース

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
