Xcode CocoaPods Error

Glass·2022년 11월 11일
0

해결

목록 보기
1/5

MacBook Pro 2 GHz 쿼드 코어 Intel Core i5 인텔칩

flutter ios 빌드하는데 CocoaPods 에러 뜸

Error output from CocoaPods:

Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
[!] Automatically assigning platform iOS with version 13.0 on target Runner because no platform was specified. Please specify a platform for this target in your Podfile. See https://guides.cocoapods.org/syntax/podfile.html#platform.
Error: CocoaPods’s specs repository is too out-of-date to satisfy dependencies.
To update the CocoaPods specs, run:
pod repo update
Exception: Error running pod install

pod repo update 또는 Error running pod install 해라..
flutter 프로젝트내에 ios 폴더로 이동

i-MacBookPro for_vet % cd ios
i-MacBookPro ios %
i-MacBookPro ios % pod install

Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
Analyzing dependencies
firebase_core: Using Firebase SDK version ‘10.0.0’ defined in ‘firebase_core’
firebase_messaging: Using Firebase SDK version ‘10.0.0’ defined in ‘firebase_core’
[!] CocoaPods could not find compatible versions for pod “Firebase/Messaging”:
In snapshot (Podfile.lock):
Firebase/Messaging (= 9.6.0)
In Podfile:
firebase_messaging (from .symlinks/plugins/firebase_messaging/ios) was resolved to 14.0.3, which depends on
Firebase/Messaging (= 10.0.0)
You have either:

  • out-of-date source repos which you can update with pod repo update or with pod install --repo-update.
  • changed the constraints of dependency Firebase/Messaging inside your development pod firebase_messaging.
    You should run pod update Firebase/Messaging to apply changes you’ve made.
    [!] Automatically assigning platform iOS with version 13.0 on target Runner because no platform was specified. Please specify a platform for this target in your Podfile. See https://guides.cocoapods.org/syntax/podfile.html#platform.

Firebase 랑 ios 버전이 문제가 있다고 뭐라고 함
-> pod update Firebase/Messaging

i-MacBookPro ios % pod update Firebase/Messaging
11:29
Generating Pods project
Integrating client project
Pod installation complete! There are 17 dependencies from the Podfile and 29 total pods installed.

성공

0개의 댓글