Open felix0324324 opened 6 years ago
https://imgur.com/E3arPnU Just follow your steps to do but Still cannot compile, please help : (
Getting same error, did you solve? , closed all terminal, killed PID and run on deviceId directly but getting same error again for android devices.
@felix0324324 , @NagarajRaju follow this instruction to setup. https://wix.github.io/react-native-navigation/v2/#/docs/Installing all 11 steps.
react-native link after npm install
I got the following error all the time after just run the project on iOS simulator:
"Installing build/Build/Products/Debug-iphonesimulator/RNNavV2Auth.app An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2): Failed to install the requested application An application bundle was not found at the provided path. Provide a valid path to the desired application bundle. Print: Entry, ":CFBundleIdentifier", Does Not Exist
Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/RNNavV2Auth.app/Info.plist Print: Entry, ":CFBundleIdentifier", Does Not Exist"
OS: macOS Mojave 10.14 (18A391) Xcode: 10.0 (10A255)
Any advice?
https://wix.github.io/react-native-navigation/#/docs/Installing
must follow the rules as stated when implementing and do the manual install if the auto fails as it works then: npm npm install --save react-native-navigation iOS Make sure your Xcode is updated. We recommend editing .h and .m files in Xcode as the IDE will usually point out common errors.
In Xcode, in Project Navigator (left pane), right-click on the Libraries > Add files to [project name]. Add node_modules/react-native-navigation/lib/ios/ReactNativeNavigation.xcodeproj (screenshots).
In Xcode, in Project Navigator (left pane), click on your project (top), then click on your target row (on the "project and targets list", which is on the left column of the right pane) and select the Build Phases tab (right pane). In the Link Binary With Libraries section add libReactNativeNavigation.a (screenshots).
In Xcode, you will need to edit this file: AppDelegate.m. This function is the main entry point for your app:
(BOOL)application:(UIApplication )application didFinishLaunchingWithOptions:(NSDictionary )launchOptions { ... } Its content should look like this:
@implementation AppDelegate
(BOOL)application:(UIApplication )application didFinishLaunchingWithOptions:(NSDictionary )launchOptions { NSURL *jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil]; [ReactNativeNavigation bootstrap:jsCodeLocation launchOptions:launchOptions];
return YES; }
@end 3a. If, in Xcode, you see the following error message in AppDelegate.m next to #import "RCTBundleURLProvider.h":
! 'RCTBundleURLProvider.h' file not found This is because the React scheme is missing from your project. You can verify this by opening the Product menu and the Scheme submenu.
To make the React scheme available to your project, run npm install -g react-native-git-upgrade followed by react-native-git-upgrade. Once this is done, you can click back to the menu in Xcode: Product -> Scheme -> Manage Schemes, then click '+' to add a new scheme. From the Target menu, select "React", and click the checkbox to make the scheme shared. This should make the error disappear.
3b. If, in Xcode, you see the following warning message in AppDelegate.m next to #import "@implementation AppDelegate":
Class 'AppDelegate' does not conform to protocol 'RCTBridgeDelegate' You can remove RCTBridgeDelegate from this file: AppDelegate.h:
https://imgur.com/E3arPnU Just follow your steps to do but Still cannot compile, please help : (