F
flutter-setting-up-on-macos
by @flutterv
4.5(34)
ユーザーがmacOSシステム上でFlutter開発環境を設定し、モバイルアプリケーション開発がスムーズに進むように支援します。
インストール方法
npx skills add flutter/skills --skill flutter-setting-up-on-macoscompare_arrows
Before / After 効果比較
1 组使用前
macOS上でFlutter開発環境を手動で設定すると、手順が煩雑でエラーが発生しやすいです。
使用後
明確なガイドを提供し、macOS環境を効率的に設定することで、迅速にFlutter開発を開始できます。
SKILL.md
Setting Up a macOS Environment for Flutter Development
Contents
- Prerequisites
- Tooling Configuration
- Workflow: Configuring macOS Tooling
- Workflow: Validating the Environment
- Troubleshooting
Prerequisites
Ensure the following baseline requirements are met before configuring the macOS-specific toolchain:
- macOS operating system.
- Flutter SDK installed and added to the system
PATH. - Active internet connection for downloading toolchains and dependencies.
Tooling Configuration
macOS desktop development requires specific Apple toolchains to compile and debug native Swift and Objective-C code.
- Xcode: Required for compiling macOS desktop applications.
- CocoaPods: Required for managing native dependencies used by Flutter plugins.
Workflow: Configuring macOS Tooling
Copy and follow this checklist to configure the macOS build environment.
- Install Xcode: Install the latest version of Xcode from the Mac App Store or the Apple Developer portal.
- Configure Command-Line Tools: Link the Xcode command-line tools to the installed Xcode version. Run the following command in the terminal:
Conditional: If Xcode is installed in a custom directory, replacesudo sh -c 'xcode-select -s /Applications/Xcode.app/Contents/Developer && xcodebuild -runFirstLaunch'/Applications/Xcode.appwith the correct absolute path. - Accept Xcode Licenses: Accept the required developer licenses by running:
Read and agree to the prompts.sudo xcodebuild -license - Install CocoaPods: Install CocoaPods to handle native macOS plugin dependencies.
Conditional: If CocoaPods is already installed, ensure it is updated to the latest version (sudo gem install cocoapodssudo gem update cocoapods).
Workflow: Validating the Environment
Execute this feedback loop to ensure the environment is correctly configured for macOS desktop development.
- Run Validator: Execute the Flutter diagnostic tool with verbose output:
flutter doctor -v - Review Errors: Check the
Xcodesection in the output. - Fix & Retry: If errors or missing components are reported under the Xcode section, resolve them according to the output instructions, then re-run
flutter doctor -vuntil the Xcode section passes. - Verify Device Availability: Confirm that Flutter recognizes the macOS desktop as a valid deployment target:
Success Criteria: The output must contain at least one entry withflutter devicesmacoslisted as the platform.
Troubleshooting
If the validation workflow fails, apply the following resolutions:
- Missing Command-Line Tools: If
flutter doctorreports missing tools, ensure thexcode-selectcommand was run withsudoand points to the correct.appdirectory. - CocoaPods Not Found: If CocoaPods is installed but not detected, verify that your Ruby
gembinary path is included in your shell'sPATHenvironment variable. - Device Not Listed: If
flutter devicesdoes not listmacos, ensure desktop support is enabled in your Flutter configuration:flutter config --enable-macos-desktop
ユーザーレビュー (0)
レビューを書く
効果
使いやすさ
ドキュメント
互換性
レビューなし
統計データ
インストール数7.9K
評価4.5 / 5.0
バージョン
更新日2026年5月19日
比較事例1 件
ユーザー評価
4.5(34)
5
24%
4
50%
3
24%
2
3%
1
0%
この Skill を評価
0.0
対応プラットフォーム
🔧Claude Code
🔧OpenClaw
🔧OpenCode
🔧Codex
🔧Gemini CLI
🔧GitHub Copilot
🔧Amp
🔧Kimi CLI
タイムライン
作成2026年3月16日
最終更新2026年5月19日