-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
[IOS][expo-modules-core] error: exception specification of overriding function is more lax than base version #28633
Comments
This comment was marked as spam.
This comment was marked as spam.
same issue |
Hello! This is a result of one of many breaking changes introduced in 0.74. Generally, Expo SDK 50 is not meant to be used with this version of React Native. We released SDK 51 just today, which officially supports React Native 0.74 and its bridgeless mode in the new architecture. I really recommend to upgrade to this new SDK 😉 If it's not yet feasible in your project to upgrade the SDK, the workaround for this specific error would be to patch-package this line by adding - void invokeAsync(std::function<void()> &&func) override {
+ void invokeAsync(std::function<void()> &&func) noexcept override { However, I can't guarantee that everything else will work properly with RN 0.74. |
I get the same error while using SDK 51 with the following package.json. So it does not seem to be resolved with the new SDK. I removed node modules and reinstalled (with bun):
|
@JessedeJonge Could you check which version of |
Ah.. the issue was I had a overwrite hidden in my package.json for expo-modules-core. Not sure why/how that happened. Removed the overwrite, reinstalled and it's now working (with Expo SDK 51). Thank you. |
Same for me, issue were resolved with upgrade of SDK. Thanks |
We tried upgrading to SDK 51, but on pod install getting:
We do not use |
you can try to add sth like this in your
|
@marelix2 thanks for that, it helped setting:
But I'm having problems with RCT-Folly now:
Setting the paths don't help:
Getting error:
|
@aureosouza No clue what to do. Have you tried to remove Podfile.lock and Pods? It usually helps combined with update dependencies to latest. |
@marelix2 yep did hard reset on everything, but still the same:
I might open a new issue on this, but thanks anyway. |
@aureosouza facing the same issue, did you ever figure it out? |
@thomasflorian yes we solved it upgrading to latest expo 51 and ensuring you have in your Podfile:
Hope that helps you! |
Summary
after updating react-native from 0.73.6 to 0.74.1 version im getting errors
my package.json
What platform(s) does this occur on?
iOS
SDK Version
50.0.17
Environment
expo-env-info 1.2.0 environment info:
System:
OS: macOS 14.2.1
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.11.0 - ~/.nvm/versions/node/v20.11.0/bin/node
Yarn: 3.6.4 - ~/.nvm/versions/node/v20.11.0/bin/yarn
npm: 10.2.4 - ~/.nvm/versions/node/v20.11.0/bin/npm
Watchman: 2023.12.04.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.15.2 - /opt/homebrew/lib/ruby/gems/3.1.0/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 23.4, iOS 17.4, macOS 14.4, tvOS 17.4, visionOS 1.1, watchOS 10.4
IDEs:
Xcode: 15.3/15E204a - /usr/bin/xcodebuild
Minimal reproducible example
link to prepared repo: https://github.com/marelix2/expo-example-error
The text was updated successfully, but these errors were encountered: