본문 바로가기
Flutter

Firebase/Functions Dependency Issue with Flutter and CocoaPods

by 난타코다옹 2023. 10. 16.

오류 메시지: `[!] CocoaPods could not find compatible versions for pod "Firebase/Functions": In Podfile: Firebase/Functions

Specs satisfying the Firebase/Functions dependency were found, but they required a higher minimum deployment target.`

원인: Firebase/Functions pod가 iOS deployment target을 요구하는 것이 문제입니다. Firebase/Functions pod가 iOS 11.0 이상을 요구하는 반면, Podfile에서 iOS 11.0 이하를 요구하고 있습니다.

해결: Podfile에서 iOS deployment target을 11.0 이상으로 업데이트해야 합니다. Podfile에서 # platform :ios, '11.0' 주석을 제거하고 iOS deployment target을 11.0 이상으로 업데이트하세요.

platform :ios, '11.0'

target 'MyApp' do
  use_frameworks!

  # Pods for MyApp
  pod 'Firebase/Core'
  pod 'Firebase/Firestore'
  pod 'Firebase/Database'
  pod 'Firebase/Auth'
  pod 'Firebase/Messaging' ,'~> 4.6.0'
  pod 'Firebase/Storage'
  pod 'Firebase/Functions'
  pod 'GoogleMaps'
  pod 'FirebaseUI/Auth'
  pod 'FirebaseUI/Phone'
  pod 'ImageSlideshow', '~> 1.6'
  pod 'DZNEmptyDataSet'
  pod 'SDWebImage'
  pod 'SDWebImage/WebP'

  target 'MyAppTests' do
    inherit! :search_paths
    # Pods for testing
  end

  target 'MyAppUITests' do
    inherit! :search_paths
    # Pods for testing
  end
end

그 다음, 터미널에서 pod repo update, pod update, pod install을 차례로 실행하세요.

*결론: * Firebase/Functions pod를 설치할 때 iOS deployment target 문제가 발생할 수 있습니다. 이 문제를 해결하기 위해서는 Podfile에서 iOS deployment target을 11.0 이상으로 업데이트해야 합니다. 이를 통해 Firebase/Functions pod를 정상적으로 설치할 수 있습니다.