Cocoapods could not find compatible versions for pod “app_settings”

Explanation:

The error message you are seeing “cocoapods could not find compatible versions for pod 'app_settings'” indicates that CocoaPods was unable to find a compatible version of the ‘app_settings’ pod for your project.

This error usually occurs when there is a conflict between the version requirements of your project’s dependencies. CocoaPods tries to find a version of the ‘app_settings’ pod that satisfies all of these requirements, but if no compatible version is available, it throws this error.

Solution:

To resolve this issue, you can try the following steps:

  1. Check the compatibility of the ‘app_settings’ pod: Make sure that the ‘app_settings’ pod you are trying to use is compatible with the version of Cocoapods and the platform you are targeting. You can check the pod’s documentation or its source repository to find the required versions.
  2. Update CocoaPods: Make sure you are using the latest version of CocoaPods. You can update it by running “gem install cocoapods” in the terminal.
  3. Clean and update your Podfile.lock: Run “pod deintegrate” and then “pod install” in the terminal to clean and update your Podfile.lock.
  4. Check conflicting dependencies: Check if any other pods in your Podfile have conflicting dependencies with the ‘app_settings’ pod. In such cases, you might need to update or remove those conflicting pods.
  5. Specify specific versions: If you know the exact versions of the ‘app_settings’ pod and its dependencies that are compatible with your project, you can specify them in your Podfile. For example, “pod 'app_settings', '1.0.0'“.
  6. Re-install pods: After making any changes to your Podfile, run “pod install” to re-install the pods and resolve the dependencies.

Example:

Here is an example of a Podfile that specifies a compatible version of the ‘app_settings’ pod:


platform :ios, '14.0'

target 'YourApp' do
  use_frameworks!

  pod 'app_settings', '2.1.0'
end
  

Read more interesting post

Leave a comment