반응형 전체 글193 [ios][flutter] Invalid `Podfile` file: undefined method `exists?' for File:Class. [ios][flutter] Invalid `Podfile` file: undefined method `exists?' for File:Class. 문제 현상 플러터에서 ios앱을 빌드할 때, pod install 를 실행하면 아래와 같이 에러가 나온다. Invalid `Podfile` file: undefined method `exists?' for File:Class. 원인 플러터 버전과 cocoapods버전 사이의 호환성 문제 - c.f. (2022년 8월에 개선됨 확인) https://github.com/flutter/flutter/pull/109428 Remove deprecated Ruby File.exists? in helper script by jmagman · Pull Request #10.. 2023. 1. 14. [ios][flutter] Warning: CocoaPods not installed. Skipping pod install [ios][flutter]Warning: CocoaPods not installed. Skipping pod install 개요맥에서 플러터 앱을 ios버전으로 빌드할 때 아래와 같은 에러가 발생할 때가 있다.Warning: CocoaPods not installed. Skipping pod install 해결 방법1. 이럴 땐 아래 명령어를 터미널에 입력하자.sudo gem install cocoapods 2. 위 명령어가 안될 때는 homebrew를 사용하자. (아래 명령어 실행)brew install cocoapods 2023. 1. 14. 맥북에서 Homebrew 설치하는 방법 맥북에서 Homebrew 설치하는 방법 터미널을 열고 아래 순서대로 명령어를 입력하면 된다. 간단하다! 1. /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" 2. echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/사용자계정/.zprofile 3. eval "$(/opt/homebrew/bin/brew shellenv)" 4. 이제 다 됐다! 아래 명령어까지만 실행이 잘 된다면 설치 완료!! brew --version 2023. 1. 14. flutter: command not found 해결 방법 flutter: command not found해결 방법 플러터를 설치하고 나서 flutter: command not found 에러 메시지가 나올 때가 있다.이 때는 bash와 zsh의 환경 변수 경로를 추가하면 된다. bash 환경 변수 추가터미널을 열고 vi .bash_profile.bash_profile에 아래처럼 flutter의 바이너리 파일이 있는 디렉터리를 지정 (경로는 각자 개발 환경마다 다름!) export PATH="$PATH:~/development/flutter/bin" 3. source ./.bash_profile 명령어로 환경 변수 경로 적용 2. zsh 환경 변수 추가 (mac OS - 카날리타 부터)터미널을 열고 vi .zshrc.zshrc 에 아래처럼.. 2023. 1. 14. 이전 1 ··· 22 23 24 25 26 27 28 ··· 49 다음 반응형