-
Flutter Error: CocoaPods's specs repository is too out-of-date to satisfy dependencies.To update the CocoaPods specs, run: pod repo updateFlutter μ€λ₯ 2022. 1. 31. 00:45
- μ€λ₯ λ΄μ©
- ꡬκΈλ§ νμ λ λμ€λ λ°©λ²λ€
- μν μ°©μ€
- ν΄κ²° λ°©λ²
μ€λ₯ λ΄μ©
Error: CocoaPods's specs repository is too out-of-date to satisfy dependencies. To update the CocoaPods specs, run: pod repo update
ꡬκΈλ§ νμ λ λμ€λ λ΄μ©λ€
1. pod repo update
cd ios pod repo update
2. νλ‘μ νΈμ /ios λλ ν 리 μμ Podfile.lock νμΌμ μμ
νμλ Pidfile.lock νμΌμ΄ μμ±λμ§ μμ μ΄ λ°©λ²μΌλ‘λ ν΄κ²°μ νμ§ λͺ»νμλ€
cd ios rm Podfile.lock pod install --repo-update flutter clean flutter run
μν μ°©μ€
1. 첫λ²μ§Έ μ€λ₯ λ°μ
cd ios pod install --repo-update
ν΄λΉ μ½λλ₯Ό μ λ ₯νμ λ μλμ κ°μ μ€λ₯κ° λ°μνλ€
Looking for related issues on cocoapods/cocoapods... Searching for inspections failed: undefined method `map' for nil:NilClass
ꡬκΈλ§μ νμ¬ M1λ§₯μ κ²½μ° μ£Όλ‘ λ°μνλ λ¬Έμ λΌκ³ νμμΌλ©° ꡬκΈλ§ ν΄κ²°λ²μ μλνμμΌλ λκ°μ΄ μ€λ₯κ° λ°μνλ€
κ·Έ μ½λλ€μ μλμ κ°λ€
Install ffi sudo arch -x86_64 gem install ffi cd ios arch -x86_64 pod install
ν΄κ²°λ°©λ²
sudo arch -x86_64 gem install ffi pod repo update
μ λ ₯ ν λΉλλ₯Ό νλ©΄ λ¬Έμ μμ΄ μ€νμ΄ λμλ€.
μ νν μ΄λ€ λΆλΆμμ λ¬Έμ κ° μμλ μ§λ λͺ¨λ₯΄κ² μ§λ§ μμ κ°μ μμλ‘ νμ λ ν΄κ²°μ΄ λμλ€.
'Flutter μ€λ₯' μΉ΄ν κ³ λ¦¬μ λ€λ₯Έ κΈ