[iOS] Error: CocoaPods's specs repository is too out-of-date to satisfy dependencies 오류

sumong·2023년 1월 8일
0

Flutter 오류 대응

목록 보기
1/15
post-thumbnail

참고 : https://stackoverflow.com/questions/64443888/flutter-cocoapodss-specs-repository-is-too-out-of-date-to-satisfy-dependencies

간단한 해결책

: 프로젝트의 iOS 폴더에서 아래 명령어를 실행합니다.

  • intel mac : pod repo update
  • m1 mac : arch -x86_64 pod repo update

위 방법으로도 안 된다면

: 터미널을 켜서 문제가 생긴 Flutter 프로젝트의 root 폴더로 들어간 뒤, 다음 순서대로 입력합니다.

  1. flutter clean
  2. delete /ios/Pods
  3. delete /ios/Podfile.lock
  4. flutter pub get
  5. ios 폴더로 들어간 뒤, pod install(m1 칩이라면 arch -x86_64 pod install) 입력

추가사항) 만약 M1 칩에서 ios 빌드가 안 되고, 위 방법으로도 해결이 안 된다면
-> 5번의 arch -x86_64 pod install 이전에 arch -x86_64 pod repo update 를 실행시켜 보세요!

profile
Flutter 메인의 풀스택 개발자 / 한양대 컴퓨터소프트웨어학과, HUHS의 화석

0개의 댓글