-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When building for iOS, error: "CocoaPods could not find compatible versions for pod "EXDevice"" #163
Comments
So as it turns out, this was only the start of an endless stream of problems. Seems to be a lot of dependency related issues when using this library and expo sdk 40. On android is fine but iOS it always crashes after calling Sentry.init when the app starts. Literally can't get it to work no matter what I try. |
Its work |
Good to hear you got it working. I'm still struggling to get it to work. I don't understand exactly what's going wrong but I'm pretty sure its something dependency related. I think sentry-expo is installing expo packages with versions that are not compatible with expo 40 SDK. I've tried going through the dependencies but I was unable to pinpoint the issue. Not sure if anyone can make sense of this but here's one of the iOS crash logs from the iPhone. |
It seems to be a problem with unimodules searching within |
Try changing platform to a higher ios in podflie |
changing platform from 10 to 11 fixed |
I had to pin both I'm also still getting a crash on app startup, before sentry is initialized, with my EAS builds. I don't think it's related to sentry-expo though as it was happening before I added that to my app |
Changing platform to a higher iOS version in Podfile is NOT a solution. |
Hi all, sorry about this! It should be fixed in Please install that, and re-run |
Just wanted to follow-up here and see how that fix was working for those that have implemented it? |
I just got the problem, I'm going to tell you very soon it that fix the issue :) |
I confirm to you now the build pass |
I was having the same problem with managed app when trying to build with eas build --local. My problem was I installed "expo-device" package with yarn instead of expo install. Running expo install expo-device worked. |
I had this problem with expo-system-ui. Version 2.4.0 showed a minimal version 12.0 in podspec, which matched the platform in the Podfile. I downgraded with npm i [email protected], did pod install at it's working now. |
Good news is I worked out the issue. Figured I'd post it here in case someone else is struggling.
I'm using expos build service + managed workflow for expo app (SDK 40) + yarn package manager.
Initially, my builds were fine but after I added sentry-expo, the iOS builds started failing with this:
The issue is that expo SDK 40.0.1 seems to only be compatible with the package expo-device (2.4.0). However, when installing Sentry expo, yarn installs expo-device (3.0.0) causing the build issue.
To fix this, what you must do is add the following to your package.json file.
This will force yarn to resolve the correct version thereby fixing the problem.
The text was updated successfully, but these errors were encountered: