
* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.
* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.
macOC Ventura 13.0.1 환경에서 설치 진행중입니다.
강의노트에 따라 카타리나(Catalina) 이상버전 설치를 진행하면 터미널에 아래와 같이 나옵니다.
(base) ryu@Ryuui-MacBookAir ~ % echo 'export PATH="$PATH:$HOME/development/flutter/bin"' >> ~/.zshrc && source ~/.zshrc
zsh: permission denied: /Users/ryu/.zshrc
그래서 모하비(Mojave) 이하 버전 설치를 진행해 보니 Building flutter tool...이후에 아래와 같은 에러가 나옵니다.
(base) ryu@Ryuui-MacBookAir ~ % echo 'export PATH="$PATH:$HOME/development/flutter/bin"' >> ~/.bash_profile && source ~/.bash_profile
(base) ryu@Ryuui-MacBookAir ~ % flutter --version
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Building flutter tool...
Failed to find the latest git commit date: VersionCheckError: Command exited
with code 1: git -c log.showSignature=false log HEAD -n 1 --pretty=format:%ad
--date=iso
Standard out:
Standard error: xcrun: error: invalid active developer path
(/Library/Developer/CommandLineTools), missing xcrun at:
/Library/Developer/CommandLineTools/usr/bin/xcrun
Returning 1970-01-01 09:00:00.000 instead.
Flutter • channel unknown • unknown source
Framework • revision () • 1970-01-01 09:00:00.000
Engine • revision 3316dd8728
Tools • Dart 2.18.6 • DevTools 2.15.0
-----
flutter doctor 를 터미널에 입력했을 때도 아래와 같은 일부 오류가 나타납니다.
(base) ryu@Ryuui-MacBookAir ~ % flutter doctor
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Doctor summary (to see all details, run flutter doctor -v):
Failed to find the latest git commit date: VersionCheckError: Command exited
with code 1: git -c log.showSignature=false log HEAD -n 1 --pretty=format:%ad
--date=iso
Standard out:
Standard error: xcrun: error: invalid active developer path
(/Library/Developer/CommandLineTools), missing xcrun at:
/Library/Developer/CommandLineTools/usr/bin/xcrun
Returning 1970-01-01 09:00:00.000 instead.
The operation couldn’t be completed. Unable to locate a Java Runtime.
Please visit http://www.java.com for information on installing Java.
[!] Flutter (Channel unknown, 0.0.0-unknown, on macOS 13.0.1 22A400 darwin-arm,
locale ko-KR)
! Flutter version 0.0.0-unknown on channel unknown at
/Users/ryu/development/flutter
! Upstream repository unknown
[✗] Android toolchain - develop for Android devices
✗ cmdline-tools component is missing
Run `path/to/sdkmanager --install "cmdline-tools;latest"`
See https://developer.android.com/studio/command-line for more details.
[✗] Xcode - develop for iOS and macOS
✗ Xcode installation is incomplete; a full installation is necessary for iOS
development.
Download at: https://developer.apple.com/xcode/download/
Or install Xcode via the App Store.
Once installed, run:
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
sudo xcodebuild -runFirstLaunch
✗ CocoaPods not installed.
CocoaPods is used to retrieve the iOS and macOS platform side's plugin
code that responds to your plugin usage on the Dart side.
Without CocoaPods, plugins will not work on iOS or macOS.
For more info, see https://flutter.dev/platform-plugins
To install see
https://guides.cocoapods.org/using/getting-started.html#installation for
instructions.
[✓] Chrome - develop for the web
[!] Android Studio (not installed)
[✓] VS Code (version 1.66.2)
[✓] Connected device (2 available)
[✓] HTTP Host Availability
! Doctor found issues in 4 categories.
