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:
- Update Cocoapods to the latest version by running the command
gem install cocoapods
. - Remove the existing Podfile.lock file by running the command
rm Podfile.lock
. - Run the command
pod install
to regenerate the Podfile.lock file with the correct dependencies. - 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.