흰오목눈이야 개발하자

Flutter iOS 세팅 에러 Xcode installation is incomplete; a full installation is necessary for iOS development. 본문

Flutter

Flutter iOS 세팅 에러 Xcode installation is incomplete; a full installation is necessary for iOS development.

흰오목눈이 2023. 1. 25. 18:02

flutter doctor를 실행하고 iOS와 관련된 부분에서 문제가 있었다.

[✗] 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.

 

 

문제


Xcode가 설치되어 있는데도 불구하고 아래의 에러가 나왔다. Xcode가 완전하게 설치되어 있지 않다는 내용이었다.

 ✗ 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

 

해결


터미널에 아래 코드를 입력하고 다시 flutter doctor로 검사하자 해결되었다.

sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
sudo xcodebuild -runFirstLaunch