Trying to build the latest version of the React Native Sample App (00-Login folder) and it should just be yarn install, cd ios, pod install and boom! But, I get an error (below) and regardless of what I do I can’t get around it. Have the dependencies been updated recently?
Error:
[!] CocoaPods could not find compatible versions for pod “Auth0”:
In snapshot (Podfile.lock):
Auth0 (= 2.4.0)
In Podfile:
A0Auth0 (from ../node_modules/react-native-auth0) was resolved to 3.0.0, which depends on
Auth0 (= 2.5.0)
You have either:
out-of-date source repos which you can update with pod repo update or with pod install --repo-update.
changed the constraints of dependency Auth0 inside your development pod A0Auth0.
You should run pod update Auth0 to apply changes you’ve made.
I should add, using pod update Auth0 fails due to a boost checksum verification failure. The Internet seems to agree that that error is fixed through a newer version of React Native.
Yes, there was a recent update 2 weeks ago in our React Native SDK to v4.5.0, which the A0Auth0.podspec file has updated the Auth0, JWTDecode, and SimpleKeychain dependencies. You can see the list of changes here.
The Podfile.lock file was also updated to use the A0Auth0 4.4.0, Auth0 2.10, JWTDecode 3.2.0, and SimpleKeychain 1.2.0 pods.
I see that the react-native-sample app (00-Login folder) still references older versions of those dependencies, which might relate to the error you experienced, and require you to update the list of pods. Once the pod dependencies are updated, this error should be resolved.