We updated @sentry/react-native
in our project from 5.31.0
to 6.7.0
In our self hosted pipeline agent we now receive this error while building:
[!] CocoaPods could not find compatible versions for pod "Sentry/HybridSDK":
In snapshot (Podfile.lock):
Sentry/HybridSDK (= 8.44.0)
In Podfile:
RNSentry (from `../node_modules/@sentry/react-native`) was resolved to 6.7.0, which depends on
Sentry/HybridSDK (= 8.44.0)
None of your spec sources contain a spec satisfying the dependencies: `Sentry/HybridSDK (= 8.44.0), Sentry/HybridSDK (= 8.44.0)`.
Locally we need to execute pod update Sentry/HybridSDK
and pods can be installed as expected.
Do we always have to manually update pods on our computer running the agent? Just executing pod repo update
on every build is an easy fix - but for sure this is not the solution we want to have.
Anyone knows an approach to safely automate this? Thanks already!
I'm afraid that the two ways you have mentioned are the best ones currently:
If you do not want to run the "pod repo update
" (or "pod update
") command every time when running the build pipelines on the self-hosted agents, you need to manually execute update command on the agent machine to globally update all pod repos to the newer versions.
When you do not manually execute update command on the agent machine, you need to run the update command in the pipeline to ensure the built projects are using the right versions of pod repos.