# Core Location CLI

一款 macOS 命令行工具，提供设备坐标、实时位置更新、JSON 输出及逆地理编码生成的地址字段。

> 这是 OpenNavo 上 Core Location CLI 页面的 Markdown 版本，内容与网页相同： <https://opennavo.com/zh/apps/corelocationcli>

- **最新版本**: `4.0.9`
- **开发者**: fulldecent and CoreLocationCLI contributors
- **主页**: <https://github.com/fulldecent/corelocationcli>
- **分类**: [开发工具](https://opennavo.com/zh/categories/developer-tools)
- **安装**: `brew install --cask corelocationcli`
- **近 30 天安装**: 195
- **Homebrew**: 可以安装，由 Homebrew 更新
- **下载地址**: <https://github.com/fulldecent/corelocationcli/releases/download/4.0.9/CoreLocationCLI.zip>
- **SHA-256**: `c44734b82138fb1a15d54839b7a8d0c10136317977b715987404e5d7e620b3f7`
- **附带命令**: CoreLocationCLI

SHA-256 只用来核对下载的文件是否完整，不代表安全认证。

## 安装与卸载内容

```json
[
  {
    "declaration": {
      "app": [
        "CoreLocationCLI.app"
      ],
      "target": "/Applications/CoreLocationCLI.app"
    },
    "phase": "install",
    "sources": [
      "CoreLocationCLI.app"
    ],
    "target": "/Applications/CoreLocationCLI.app",
    "type": "app"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/CoreLocationCLI.app/Contents/MacOS/CoreLocationCLI"
      ],
      "target": "$HOMEBREW_PREFIX/bin/CoreLocationCLI"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/CoreLocationCLI.app/Contents/MacOS/CoreLocationCLI"
    ],
    "target": "$HOMEBREW_PREFIX/bin/CoreLocationCLI",
    "type": "binary"
  },
  {
    "declaration": {
      "zap": []
    },
    "phase": "cleanup",
    "sources": [],
    "type": "zap"
  }
]
```

## 介绍

CoreLocationCLI 是一款开源命令行工具，使用 CoreLocation 将设备的实际位置输出到标准输出。它适合与其他工具组合使用，或用于测试和日志记录，而非用作图形化地图应用。

### 输出与实时更新
默认输出为纬度和经度。使用 --watch 可持续输出位置更新，按 Ctrl-C 停止。--json 选项将可用的位置信息输出为 JSON 对象，--format 则用于选择单独的字段。支持的字段包括坐标、海拔、速度、方向、水平和垂直精度、时间戳、逆地理编码得到的地址组成部分、国家代码和时区。--verbose 可启用调试输出。

### macOS 设置
官方 README 建议在 Mac 上开启 Wi-Fi，否则该工具可能报告 kCLErrorDomain 错误 0。macOS 的定位权限和安全批准可能影响运行。Homebrew cask 会安装 CoreLocationCLI.app，并为其命令行可执行文件创建链接。随附的 .app 并不提供独立的图形界面。

### 版本范围
本目录记录的最新三个版本为 4.0.9、4.0.7 和 4.0.6。官方 4.0.7 版本的发布标题为“公证与签名”，但没有实质性的发布说明正文，因此无法获取详细变更。上游将 4.0.6 描述为一次重新构建，用于查看是否能解决问题，并非一组已确认的错误修复。4.0.4 记录了与定位权限相关的内嵌 Info.plist 和脚本变更。

来源：
- https://github.com/fulldecent/corelocationcli
- https://github.com/fulldecent/corelocationcli/releases/tag/4.0.7
- https://github.com/fulldecent/corelocationcli/releases/tag/4.0.6
- https://github.com/fulldecent/corelocationcli/releases/tag/4.0.4
- https://formulae.brew.sh/cask/corelocationcli

## 系统要求

- 适用于 macOS 27, 26, 15, 14, 13, 12, 11 的版本 · 应用版本: 4.0.9 · Intel · <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/c/corelocationcli.rb> · 核查于 2026-11-22
  - <https://github.com/fulldecent/corelocationcli/releases/download/4.0.9/CoreLocationCLI.zip>
  - SHA-256: `c44734b82138fb1a15d54839b7a8d0c10136317977b715987404e5d7e620b3f7`
- 适用于 macOS 27, 26, 15, 14, 13, 12, 11 的版本 · 应用版本: 4.0.9 · Apple 芯片 · <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/c/corelocationcli.rb> · 核查于 2026-11-22
  - <https://github.com/fulldecent/corelocationcli/releases/download/4.0.9/CoreLocationCLI.zip>
  - SHA-256: `c44734b82138fb1a15d54839b7a8d0c10136317977b715987404e5d7e620b3f7`

## Core Location CLI 的安全事实

这里只列可以核验的事实，并注明来源和日期，不是安全认证。要检查你下载的文件，可以用 OpenNavo 在本机扫描。

- <https://github.com/fulldecent/corelocationcli> · 是否开源: 是 — <https://github.com/fulldecent/corelocationcli> · 核查于 2026-11-13

## 卸载

- `brew uninstall --cask corelocationcli`

普通卸载会删除应用本身，设置和缓存会保留。

## 最新版本说明

### 4.0.9 (2026-10-13)

官方 4.0.9 说明仅列出发布维护任务及完整差异链接，未说明具体用户可见改动。

### CoreLocationCLI 4.0.9

#### 本地化摘要

官方 4.0.9 说明仅列出发布维护任务及完整差异链接，未说明具体用户可见改动。

#### 完整官方原文（未翻译）

#### What's Changed
* chore(main): release 4.0.9 by @github-actions[bot] in https://github.com/fulldecent/corelocationcli/pull/58

**Full Changelog**: https://github.com/fulldecent/corelocationcli/compare/4.0.8...4.0.9

#### Sources

- https://github.com/fulldecent/corelocationcli/releases/tag/4.0.9
- https://formulae.brew.sh/api/cask/corelocationcli.json

## 资料与来源

- <https://opennavo.com/zh/apps/corelocationcli>
- <https://opennavo.com/zh/apps/corelocationcli/versions>
- <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/c/corelocationcli.rb> · 核查于 2026-11-22
- <https://formulae.brew.sh/cask/corelocationcli>
- <https://github.com/fulldecent/corelocationcli> · 核查于 2026-11-13
