그냥저냥

Dart/Flutter | CocoaPods could not find compatible versions for pod "Firebase/CoreOnly" 에러 해결하기 본문

개발기/트러블슈팅

Dart/Flutter | CocoaPods could not find compatible versions for pod "Firebase/CoreOnly" 에러 해결하기

sync86 2025. 4. 22. 13:41
728x90
반응형

Flutter 프로젝트에서 Firebase Cloud Message를 사용하기 위해 Firebase 라이브러리를 사용중이다. Flutter 업그레이드한 후 ios나 macos에서 빌드할 때 오류가 발생하여 ios 또는 macos 디렉토리에서 pod install 명령을 실행했으나 아래와 같은 결과를 확인하였다.

$ pod install
Analyzing dependencies
firebase_core: Using Firebase SDK version '11.10.0' defined in 'firebase_core'
firebase_messaging: Using Firebase SDK version '11.10.0' defined in 'firebase_core'
[!] CocoaPods could not find compatible versions for pod "Firebase/CoreOnly":
  In snapshot (Podfile.lock):
    Firebase/CoreOnly (= 11.8.1, ~> 11.8.0)

  In Podfile:
    firebase_core (from `Flutter/ephemeral/.symlinks/plugins/firebase_core/macos`) was resolved to 3.13.0, which depends on
      Firebase/CoreOnly (~> 11.10.0)

Specs satisfying the `Firebase/CoreOnly (= 11.8.1, ~> 11.8.0), Firebase/CoreOnly (~> 11.10.0)` dependency were found, but they required a higher minimum deployment target.
tae1kim@gimtaewon-ui-MacBookAir macos % rm -rf Podfile.lock 
tae1kim@gimtaewon-ui-MacBookAir macos % pod install        
Analyzing dependencies
firebase_core: Using Firebase SDK version '11.10.0' defined in 'firebase_core'
firebase_messaging: Using Firebase SDK version '11.10.0' defined in 'firebase_core'
[!] CocoaPods could not find compatible versions for pod "Firebase/CoreOnly":
  In Podfile:
    firebase_core (from `Flutter/ephemeral/.symlinks/plugins/firebase_core/macos`) was resolved to 3.13.0, which depends on
      Firebase/CoreOnly (~> 11.10.0)

None of your spec sources contain a spec satisfying the dependency: `Firebase/CoreOnly (~> 11.10.0)`.

You have either:
 * out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
 * mistyped the name or version.
 * not added the source repo that hosts the Podspec to your Podfile.

 

You have either 항목에 설명되어 있는데, $ pod repo update 또는 $ pod install --repo-update를 실행하면 된다고 한다. 그래서 지체없이 $ pod install --repo-update를 실행했다.

$ pod install --repo-update
Updating local specs repositories
Analyzing dependencies
firebase_core: Using Firebase SDK version '11.10.0' defined in 'firebase_core'
firebase_messaging: Using Firebase SDK version '11.10.0' defined in 'firebase_core'
Downloading dependencies
Installing Firebase (11.10.0)
Installing FirebaseCore (11.10.0)
Installing FirebaseCoreInternal (11.10.0)
Installing FirebaseInstallations (11.10.0)
Installing FirebaseMessaging (11.10.0)
Installing FlutterMacOS (1.0.0)
Installing GoogleDataTransport (10.1.0)
Installing GoogleUtilities (8.0.2)
Installing PromisesObjC (2.4.0)
Installing device_info_plus (0.0.1)
Installing file_selector_macos (0.0.1)
Installing firebase_core (3.13.0)
Installing firebase_messaging (15.2.5)
Installing flutter_secure_storage_macos (6.1.3)
Installing in_app_purchase_storekit (0.0.1)
Installing nanopb (3.30910.0)
Installing package_info_plus (0.0.1)
Installing path_provider_foundation (0.0.1)
Installing shared_preferences_foundation (0.0.1)
Installing sign_in_with_apple (0.0.1)
Installing url_launcher_macos (0.0.1)
Installing webview_flutter_wkwebview (0.0.1)
Generating Pods project
Invalid key/value pair: DART_DEFINES=RU5WPWxvY2FsaG9zdA==,UElUSU5fQVBJX0VORFBPSU5UPWh0dHA6Ly9sb2NhbGhvc3Q6MzAwMA==,UElUSU5fQVBJX1BBVEhfVE9LRU5TPS90b2tlbnM=,UElUSU5fQVBJX1BBVEhfVVNFUlM9L3VzZXJz,UElUSU5fQVBJX1BBVEhfTUFLRVJTPS9tYWtlcnM=,UElUSU5fQVBJX1BBVEhfVFlQRVM9L3R5cGVz,UElUSU5fQVBJX1BBVEhfQVVDVElPTlM9L2F1Y3Rpb25z,UElUSU5fQVBJX1BBVEhfU1VCTUlUUz0vc3VibWl0cw==,UElUSU5fQVBJX1BBVEhfU1RBVEVTPS9zdGF0ZXM=,UElUSU5fQVBJX1BBVEhfUFVSQ0hBU0VTX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SU5fQVBJX1BBVEhfQVVDVElPTlM9L2F1Y3Rpb25z,UElUSU5fQVBJX1BBVEhfU1VCTUlUUz0vc3VibWl0cw==,UElUSU5fQVBJX1BBVEhfU1RBVEVTPS9zdGF0ZXM=,UElUSU5fQVBJX1BBVEhfUFVSQ0hBU0VTX1JFQ0VJUFRfQVBQTEU9L3B1cmNoYXNlcy9yZWNlaXB0L2FwcGxl,UElUSU5fQVBJX1BBVEhfUFVSQ0hBU0VTX1JFQ0VJUFRfR09PR0xFPS9wdXJjaGFzZXMvcmVjZWlwdC9nb29nbGU=,UElUSU5fQVBJX1BBVEhfRkNNUz0vZmNtcw==,UElUSU5fQVBJX1BBVEhfQ0hBVFM9L2NoYXRz,UElUSU5fQVBJX1BBVEhfQ0hBVD0=,UElUSU5fV1NfRU5EUE9JTlQ9aHR0cDovL2xvY2FsaG9zdDo4MDA1,UElUSU5fV1NfUEFUSF9TT0NLRVQ9L3NvY2tldC5pbw==,UElUSU5fV1NfUEFUSF9DSEFUPQ==,S0FLQU9TREtfS0VZPWJmMzgzZjEwNjBhMzViYjY3Mzk4ZmM2MWI3NzE1OGFl,S0FLQU9XRUJfS0VZPTEwNmRlMmNhY2IyYTI2NmE4OGZjNGQwM2Q5ZjVjMTlh,U0dJU0FQSV9FTkRQT0lOVD1odHRwczovL3NnaXNhcGkua29zdGF0LmdvLmty,U0dJU0FQSV9QQVRIX0FVVEg9L09wZW5BUEkzL2F1dGgvYXV0aGVudGljYXRpb24uanNvbg==,U0dJU0FQSV9QQVRIX0NJVFk9L09wZW5BUEkzL2FkZHIvc3RhZ2UuanNvbg==,U0dJU0FQSV9LRVk9Mzc0ZjI1OTdhZTAzNGY5N2E3ZDA=,U0dJU0FQSV9TRUNSRVQ9MmJkOTFjYWYwZGNkNDUwZmFiYmU=
Integrating client project
Pod installation complete! There are 13 dependencies from the Podfile and 22 total pods installed.

[!] CocoaPods did not set the base configuration of your project because your project already has a custom config set. In order for CocoaPods integration to work at all, please either set the base configurations of the target `Runner` to `Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig` or include the `Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig` in your build configuration (`Runner/Configs/AppInfo.xcconfig`).

[!] CocoaPods did not set the base configuration of your project because your project already has a custom config set. In order for CocoaPods integration to work at all, please either set the base configurations of the target `Runner` to `Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig` or include the `Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig` in your build configuration (`Runner/Configs/AppInfo.xcconfig`).

[!] CocoaPods did not set the base configuration of your project because your project already has a custom config set. In order for CocoaPods integration to work at all, please either set the base configurations of the target `Runner` to `Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig` or include the `Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig` in your build configuration (`Runner/Configs/AppInfo.xcconfig`).

 

 

이렇게 결과를 확인한 후 빌드 및 실행에 위와 같은 에러가 없어졌다.

728x90
반응형