Skip to content
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

AppDelegate.m build error: "No visible @interface for 'RCTBundleURLProvider' ..." #7833

Open
1 task done
marandaneto opened this issue Jan 26, 2024 · 0 comments
Open
1 task done

Comments

@marandaneto
Copy link

marandaneto commented Jan 26, 2024

What happened?

AppDelegate.m build error: "No visible @interface for 'RCTBundleURLProvider' error when following https://wix.github.io/react-native-navigation/docs/installing#native-installation

The solution was to change the code snippet from:

- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
    return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
...

to:

- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
    return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"];
...

The fallbackResource was removed, found similar issue here expo/fyi#70

What was the expected behaviour?

Compiles without issues

Was it tested on latest react-native-navigation?

  • I have tested this issue on the latest react-native-navigation release and it still reproduces.

Help us reproduce this issue!

create new rn app latest version
add latest react-native-navigation version

ran into #7819 but patching files worked.

auto-linking didn't work so I had to patch the android and ios files manually following https://wix.github.io/react-native-navigation/docs/installing#manual-installation

try to compile, errors with AppDelegate.m build error: "No visible @interface for 'RCTBundleURLProvider' ..."

In what environment did this happen?

React Native Navigation version: 7.37.2
React Native version: 0.73.2
Has Fabric (React Native's new rendering system) enabled: (yes/no) no
Node version: 18.19
Device model: iPhone 15 pro
iOS version: 17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant