How to know the minimum deployment target a pod needs? - ios

I'm using firebase_app_check in my app and when I run
pod install
It gives me an error:
[!] CocoaPods could not find compatible versions for pod "Firebase/AppCheck":
In Podfile:
firebase_app_check (from .symlinks/plugins/firebase_app_check/ios) was resolved to 0.0.6-4, which depends on
Firebase/AppCheck (~> 8.10.0)
Specs satisfying the Firebase/AppCheck (~> 8.10.0) dependency were found, but they required a higher minimum deployment target.
I have the following in my Podfile
platform :ios, '10.0'
and as I read the firebase_app_check.podspec.json file, it mentions the deployment target must be 9.0 or greater:
"platforms": {
"ios": "9.0"
}
But if I increase the minimum deployment target to 11.0, it works. So, where and how can I know what's the minimum deployment target a dependency need?

Check the published podspec to see the definitive version. For example, you can see that version 8.10.0 of Firebase/AppCheck requires iOS 11.0 here.
For Firebase/AppCheck in particular, the podspec has been updated here to support installation back to iOS 9 and that update will release with 8.11.0 next week.

Related

How to solve this pod issue "CocoaPods could not find compatible versions for pod" for iOS project?

I put new pods into project pod file and tried to install. Then I received this error in Terminal.
[!] CocoaPods could not find compatible versions for pod "xxxxxxxxxxxxxxx":
In Podfile:
xxxxxxxxxxxxxxx
Specs satisfying the `xxxxxxxxxxxxxxx` dependency were found, but they required a higher minimum deployment target.
Update the minimum iOS version to what's required by the requested podspecs. Add something like this to the Podfile:
platform :ios, '13.0'

CocoaPods could not find compatible versions for pod "FBReactNativeSpec" while pod install

In Podfile:
FBReactNativeSpec (from `../node_modules/react-native/React/FBReactNativeSpec`)
Specs satisfying the `FBReactNativeSpec (from `../node_modules/react-native/React/FBReactNativeSpec`)` dependency were found, but they required a higher minimum deployment target.
System M1 air
react-native version 0.63
You'll need to update the platform targeted within your Podfile.
e.g. platform :ios, '13.0'

Error while building flutter app for ios on codemagic - Automatically assigning platform `iOS` with version `8.0` on target `Runner`

When trying to build a flutter app codemagic is displaying the error below.
Error output from CocoaPods:
↳
[!] Automatically assigning platform `iOS` with version `8.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 running pod install
Build failed :|
Failed to build for iOS
The app builds ok on android
I also noticed the following errors:
[!] CocoaPods could not find compatible versions for pod "firebase_ml_vision":
In Podfile:
firebase_ml_vision (from `.symlinks/plugins/firebase_ml_vision/ios`)
Specs satisfying the `firebase_ml_vision (from `.symlinks/plugins/firebase_ml_vision/ios`)` dependency were found, but they required a higher minimum deployment target.
You need to increase you deployment target in your Podfile as stated in the plugin's documentation
Versions 0.7.0+ use the latest ML Kit for Firebase version which
requires a minimum deployment target of 9.0. You can add the line
platform :ios, '9.0' in your iOS project Podfile.
Navigate to ios/Podfile(not Podfile.lock) and uncomment the second line by removing the # then try building again.

Audiokit 4.5.2 - can't install via cocoa pods in Terminal

My app's deployment target is currently set to 9.2 in Xcode. I believe 9.0 should be minimum.
However when trying to update to AudioKit 4.5.2 (from 4.4) - I'm getting the following error in Terminal...
⇒ pod install
Analyzing dependencies
[!] CocoaPods could not find compatible versions for pod "AudioKit":
In Podfile:
AudioKit (~> 4.5.2)
Specs satisfying the `AudioKit (~> 4.5.2)` dependency were found,
but they required a higher minimum deployment target.
What should I do? Many thanks.
The answer to your question has already been given to you.
Specs satisfying the AudioKit (~> 4.5.2) dependency were found, but
they required a higher minimum deployment target.
This literally means you're trying to update to v4.5.2 but that specific version requires a higher minimum deployment target, should be higher than your iOS 9.2.
What should I do? Many thanks.
You have multiple options:
Target iOS 10 (or at least the v4.5.2's deployment target), if that's okay with your manager or team lead, or you.
Explicitly target AudioKit's lower version, like what you've mentioned, in your podfile, like so: pod 'AudioKit', '4.4'.
UPDATE:
I made a sample Xcode project and discovered that they haven't released v4.5.2 for their cocoapods, well, as far as I know. So this should be in your podfile insted:
pod 'AudioKit', '~> 4.0'
and make sure that you also have this line in your podfile, targeting your iOS version:
platform :ios, '10.0'
I hope this helps!

Specs satisfying the `ParseFacebookUtils` dependency were found, but they required a higher minimum deployment target

enter image description herewhen I am installing pod file for latest parse sdk by using the below syntax in podfile:
pod 'Parse'
pod 'Facebook-iOS-SDK'
pod 'ParseFacebookUtils'
pod 'ParseFacebookUtils'
pod 'ParseFacebookUtilsV4'
Getting error like ld: library not found for -lPods
Please help me.
Your podfile should have platform same as set in your Project target->General-> Deployment Info.
Like if deployment info is set to be 9.0, then add the line to your podfile.
platform :ios, '9.0'
This problem could happen in the latest React Native 0.63, which I had just experienced. RN 0.63 required iOS 10 or higher. The solution is just platform :ios in Podfile to 10 or higher.
I was running into this same issue, make sure that every Deployment Target in your project is at least 8.1 for every Project and Target.
This includes Pods > Build Settings > iOS Deployment Target, all Targets there, and your main Project and Targets.

Resources