sakshya73
sakshya73

Reputation: 7192

No visible @interface for 'RCTBundleURLProvider' declares the selector 'jsBundleURLForBundleRoot:fallbackResource:'

This is the error that i am getting when building the app.

I am getting this error after upgrading my react-native version from 0.66.2 to 0.68.2 in my Appdelegate.mm file.

enter image description here

Upvotes: 58

Views: 27525

Answers (1)

sakshya73
sakshya73

Reputation: 7192

After some research i found out that jsBundleURLForBundleRoot:fallbackResource: no longer exists on RCTBundleURLProvider.

Here's the Fix:

Replace

return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];

with

return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"];

Re-Build the app and you are good to go.

Upvotes: 217

Related Questions