https://docs.flutter.dev/get-started/install/macos#ios-setup
macOS install
How to install on macOS.
docs.flutter.dev
flutter 도큐먼트에서 시키는대로 xcode까지 잘깔았는데,
vsc에 emulator에 ios 가 계속 안보였다.
자꾸 크롬이랑 macOS만 보여줌.
구글링 해보니까 터미널에서 flutter doctor 해보라길래
android 에뮬은 아직 안쓸거라 무시하고,
Xcode쪽 에러를 봤더니 아직 설치가 완전하지 않댄다.
1. Xcode installation is incomplete; -> Xcode를 깔아라
2. Once installed, run : -> 명령어 수행해라
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
sudo xcodebuild -runFirstLaunch
3. CocoaPods not installed -> cocoaPods 설치가 안됨. 깔아라.
->
이미 Xcode는 깔았으니까
터미널 새로 하나 더 띄어서 명령어 2개 차례대로 수행
하고 Homebrew로 cocoapod까지 깔았다.
(+cocoapod이 뭔지 찾아보니까 podfile이라고 기본 의존 라이브러리들 설정파일이 있는데
프로젝트의 podfile의 라이브러리들이 꼬이지 않게 정리해주고 Xcode의 빌드를
돕는 툴인듯)
다시 flutter -doctor -v 실행했더니 에러 사라짐.
vsc 껏다 다시키면 emulator 리스트에 ios 뜬다 오예 👍
'Flutter' 카테고리의 다른 글
[세팅방법] 플러터 설치 visual studio에서 flutter 연동 (1) | 2023.11.20 |
---|---|
[Flutter] Error - No Firebase App '[DEFAULT]' has been created - call Firebase.initializeApp() in Flutter and Firebase (0) | 2020.10.16 |