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

Not able run project in React-native iOS #47

Closed
savithrielangovan opened this issue Jan 20, 2023 · 5 comments
Closed

Not able run project in React-native iOS #47

savithrielangovan opened this issue Jan 20, 2023 · 5 comments

Comments

@savithrielangovan
Copy link

Xcode version : Version 13.1 (13A1030d)
npm version : "react-native-webengage": "^1.3.0",
react-native-cli: 2.0.1
react-native: 0.63.3

Description :
No visible @interface for 'RCTBundleURLProvider' declares the selector 'jsBundleURLForBundleRoot:'
Screenshot 2023-01-20 at 6 15 08 PM

@pkpardeep482
Copy link

facing same issue

@trung1051996
Copy link

same this issue

@nguyenthanhtrung1996
Copy link

Go to WEGWebEngageBridge.m file of react-native-webengage:
Path: yourPJ/node_modules/react-native-webengage/ios/WEGWebEngageBridge.m
Here's the Fix:
Replace:
return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"];
With:
return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];

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

@supmanyu
Copy link

the fix mentioned by @nguyenthanhtrung1996 works on react-native version 0.64.3. Thanks!

@akshay-engage
Copy link
Collaborator

**Version Compatibility Update:**


The issue you've come across does appear to be tied to version compatibility


For React Native versions less than 0.68, it is recommended to use WebEngage version v1.2.12.

For React Native versions greater than or equal to 0.68, we advise using WebEngage version v1.3.0 for optimal compatibility.


If you have any further questions or need assistance with the integration, We're here to help. You can contact us at support@webengage.com for any additional queries.

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

No branches or pull requests

6 participants