일단 현재의 환경은,
2020 M1 맥북 에어,
macOS Ventura 13.0.1
Visual Studio Code 1.74.2
Flutter$
Xcode 14.2
Android Studio 2020.3
첫번째 현상은
git 오류로 아래와 같은 에러가 xcode만 억세스 하려면 뜨면서 인스톨 해도 계속 뜸.
터미널에서 git을 실행 해 보면,
두번째 현상
git 문제가 아니고 xcode 설정을 변경하면서 생긴 듯 하여,
flutter와 xcode의 연동문제인 것 같아서 flutter doctor 해 보면,
세번째 현상
flutter 버전을 인식 못하고, Xcode도 느낌표 뜸.
오래전에 인스톨 했던 거라서 홈브루로도 한번 볼까 싶어서 brew doctor 해 보니
네번째 현상,
'bundle'이란 단어가 보임.
broken symlinks가 발견되었다는데, flutter doctor의 빨간색 글씨가
Writing error result bundle to ..... 이기 때문에 요놈이 요놈인가 싶은데,
brew cleanup을 하고 나니 맨 마지막 워닝은 사라졌으나, 앞의 현상은 여전히 그대로임. ㅠㅠ
flutter를 다시 까느냐, Xcode를 다시 까느냐.
이것이 문제로다.
일단, 첫번째 현상의 command line developer tool을 아무리 설치해도 안되니 어디에 깔려있는지라도 보기위해서
xcode-select -h 라고 터미널에서 실행 해 보면,
-p 옵션으로 디렉토리를 확인 해 보니
그리고 그 디렉토리를 보니, CommandLineTools라는 디렉토리가 없다.
왜?
그래서 다시 설치하려고 xcode-select --install을 하면, 이미 설치 되어 있다고 한다.
두번째와 세번째 현상에서 나온,
Writing error result bundle to .... 요거
검색을 해 보니 최근에 포스팅 된 이슈가 하나 있는데
https://github.com/flutter/flutter/issues/114565
SDK Missing · Issue #114565 · flutter/flutter
Hello, I hope someone can help me, update my mac m1 to MAC os Ventura and i get below errors, i already update flutter When I run the following command the error goes away but flutter doesn't c...
github.com
나와 똑같은 현상.
~/.zshrc의 SDKROOT의 경로가 이상하다.
export PATH="$PATH:/Users/hominlim/development/flutter/bin"
export PATH="$PATH":"$HOME/.pub-cache/bin"
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/opt/homebrew/Caskroom/miniforge/base/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/opt/homebrew/Caskroom/miniforge/base/etc/profile.d/conda.sh" ]; then
. "/opt/homebrew/Caskroom/miniforge/base/etc/profile.d/conda.sh"
else
export PATH="/opt/homebrew/Caskroom/miniforge/base/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda initialize <<<
# >>> vscode add path by Homin <<<
export PATH="/Applications/Visual Studio Code.app/Contents/Resources/app/bin:$PATH"
# <<< vscode add path by Homin <<<
export SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk
언제 들어왔는지 모르지만, 내가 수정한 스크립트 아래 있는걸 보니, 뭔가 업데이트 하면서 생긴 듯.
SDKROOT를 찾아 가 보니, MacOSX12.3.sdk 라는 파일이 없다.
유레카!
SDKROOT 경로를 올바르게 수정하니
두번째 현상의 에러도 없이 git도 잘 되고,
세번째 현상의 문제도 없이 flutter doctor 잘 됨.
해결은 했는데,
왜 이런 문제가 생겼던 건지는 전혀 알수가 없다는. ㅠㅠ
암튼, 그지같은 에러 하루만에 해결.
하루만에 해결?
하루를 버림? ㅋ
'재개발' 카테고리의 다른 글
애플 번들id (0) | 2022.12.25 |
---|---|
안드로이드 studio on M1 2020 (0) | 2022.12.25 |
애플 개발자 등록 (0) | 2022.12.24 |
Apple (0) | 2022.12.22 |
피그마로 아이콘 디자인 (0) | 2022.12.18 |