Cocoapods could not find compatible versions for pod “app_settings”

cocoapods could not find compatible versions for pod “app_settings”

When dealing with Cocoapods, this error occurs when there are conflicting versions of a pod in your Podfile.lock file.

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

  1. Update Cocoapods to the latest version by running the command gem install cocoapods.
  2. Remove the existing Podfile.lock file by running the command rm Podfile.lock.
  3. Run the command pod install to regenerate the Podfile.lock file with the correct dependencies.
  4. If the above steps don’t work, you may need to manually resolve the dependency conflict by specifying the version of the conflicting pod explicitly in your Podfile:
platform :ios, '10.0'

target 'YourApp' do
  pod 'app_settings', '1.0.0'
  # Other pods in your project
end
  

In the above example, replace 1.0.0 with a version that is compatible with your other dependencies.

After making the necessary changes, run the command pod install again to reinstall the dependencies with the specified pod version.

Related Post

Leave a comment