a13n
Build AI agents and run them on cloud.
MacCheck 验机宝:本地 Mac 硬件检测、交互验机与 PDF/PNG 报告导出工具
Translation pending
Developer toolsSwift · ShellGitHub @andyhuo520Self-installOwner unconfirmed
Paste into Claude or ChatGPT for installation instructions suited to your environment.
Have you tried it? One tap is enough. No sign-in needed.
Owners of public repositories under a personal GitHub account can sign in to verify ownership and manage the introduction themselves. No administrator approval is needed.
Sign in, generate a verification file, and commit it to this repository’s default branch within 30 minutes. Files on other branches or forks do not count. Then check the file below to manage the project without administrator approval. Keep the file to retain your access.
If needed, you will go to sign-in. After signing in, return here and press your chosen verification button again.
Installable projects can be verified without a deployment domain. Use GitHub sign-in for a personal repository, or the repository verification file above for an organization repository.
Ask about other verification options
The maker's introduction consists of the line above. Read the repository README for more details. Repository README ↗
Loading the full README.
Read the full README ↗中文 | English
MacCheck 是一款面向二手 Mac 交易、门店验机和个人自检的 macOS 本地验机工具。它会自动读取硬件规格、电池、存储、网络、安全与接口信息,并提供键盘、屏幕、音频、麦克风、摄像头、触控板、硬盘测速等交互测试,最后可导出 PDF 或 PNG 验机报告。
隐私说明:MacCheck 默认完全本地运行,不上传序列号、检测结果或报告内容。README 中的图片为真机测试截图,序列号等敏感信息已打码。
xcodegen,用于根据 project.yml 重新生成 Xcode 工程MacCheck-1.3.dmg。MacCheck.app 拖到 Applications。从 v1.3 起 DMG 为 Universal 通用版,Apple Silicon 与 Intel Mac(macOS 14+)均可运行。
当前发布脚本支持 Developer ID 签名与 Apple 公证。如果本机没有配置证书,会生成 ad-hoc 版本,适合本地测试;公开分发建议配置签名和公证。
如果 macOS 提示“无法打开,因为无法验证开发者”,可以先尝试右键点击 MacCheck.app,选择“打开”。
如果仍然无法打开,或“隐私与安全性”里需要显示“任何来源”,可以打开“终端.app”执行:
sudo spctl --master-disable
执行后输入开机密码并回车。该命令会开启系统设置里的“任何来源”选项,会降低 Gatekeeper 保护,建议只在确认 App 来源可信时使用。
如果 macOS 提示 App“已损坏,无法打开”,通常是下载隔离属性导致。确认已将 App 拖入 /Applications 后,在终端执行:
sudo xattr -rd com.apple.quarantine /Applications/MacCheck.app
git clone https://github.com/andyhuo520/MacCheck.git
cd MacCheck
# 可选:如果你修改了 project.yml
brew install xcodegen
xcodegen generate
xcodebuild \
-project MacCheck.xcodeproj \
-scheme MacCheck \
-configuration Release \
-derivedDataPath build_release \
CODE_SIGN_IDENTITY="-" \
CODE_SIGNING_REQUIRED=NO
构建产物位于:
build_release/Build/Products/Release/MacCheck.app
项目内置发布脚本:
./scripts/build_and_notarize.sh
脚本会执行:
xcodegen,自动重新生成工程默认输出:
~/Desktop/MacCheck-1.3.dmg
如果要正式分发,请先配置:
export MACCHECK_SIGN_ID="Developer ID Application: Your Name (TEAMID)"
export MACCHECK_NOTARY_PROFILE="maccheck-notary"
并按 Apple 官方流程使用 xcrun notarytool store-credentials 保存公证凭证。
人工验机项目需要真实硬件参与,建议按 测试清单 执行。
本地基础验证:
xcodebuild -project MacCheck.xcodeproj -scheme MacCheck -configuration Release -destination 'generic/platform=macOS' -derivedDataPath build_release CODE_SIGN_IDENTITY="-" CODE_SIGNING_REQUIRED=NO
hdiutil verify ~/Desktop/MacCheck-1.3.dmg
codesign -dv --verbose=2 build_release/Build/Products/Release/MacCheck.app
Sources/
App/ App 入口与 Info.plist
Core/ 硬件探测、报告、历史记录、系统服务
Checks/ 键盘、屏幕、音频、摄像头等交互测试
UI/ SwiftUI 页面、设计系统与导航
scripts/
build_and_notarize.sh
docs/
TESTING.md
RELEASE.md
assets/