一键导入
animamac-build-test
Build, test, and verify AnimaMac macOS app. Use when building the project, fixing build errors, or verifying changes work correctly.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Build, test, and verify AnimaMac macOS app. Use when building the project, fixing build errors, or verifying changes work correctly.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Project conventions, architecture patterns, and known gotchas for AnimaMac. Use when modifying AnimaMac code, adding features, or debugging issues.
Debug common AnimaMac issues including permissions, recording failures, GIF export problems, and UI issues. Use when the app isn't working correctly or when troubleshooting errors.
基于 SOC 职业分类
| name | AnimaMac Build & Test |
| description | Build, test, and verify AnimaMac macOS app. Use when building the project, fixing build errors, or verifying changes work correctly. |
swift build
This builds the app using Swift Package Manager. Use for quick iteration.
xcodebuild -project AnimaMac.xcodeproj -scheme AnimaMac -configuration Debug build
After building with SPM, the binary is at:
.build/debug/AnimaMac
Before building, verify:
No #Preview macros - Swift Package Manager doesn't support #Preview. Remove or wrap in #if DEBUG with Xcode-only compilation.
Swift 6 compatibility - Some ScreenCaptureKit properties are non-optional in Swift 6:
SCWindow.frame is CGRect not CGRect?NSRunningApplication.bundleIdentifier is String not String?if let for these propertiesMainActor isolation - Be careful with @MainActor on classes that implement SCStreamOutput. The delegate method stream(_:didOutputSampleBuffer:of:) is called on a background queue and needs nonisolated.
Missing import. Add:
import ScreenCaptureKit
SPM doesn't support #Preview. Remove preview blocks or use:
#if canImport(SwiftUI) && DEBUG && !BUILDING_FOR_SPM
#Preview { ... }
#endif
Check if you're using if let on non-optional Swift 6 properties. Remove the optional binding.
FFmpegManager has warnings about captured variables in closures. These are warnings, not errors, and safe for now.
After making changes, always:
swift build - Ensure it compiles~/Library/Application Support/AnimaMac/recordings/)AnimaMac/.build/debug/AnimaMac~/Library/Application Support/AnimaMac/recordings/~/Library/Application Support/AnimaMac/ffmpeg