react-native-navigation-v2 icon indicating copy to clipboard operation
react-native-navigation-v2 copied to clipboard

RNNavV2Auth has not been registered

Open felix0324324 opened this issue 7 years ago • 5 comments

https://imgur.com/E3arPnU Just follow your steps to do but Still cannot compile, please help : (

felix0324324 avatar Aug 30 '18 19:08 felix0324324

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.

NagarajRaju avatar Sep 15 '18 07:09 NagarajRaju

@felix0324324 , @NagarajRaju follow this instruction to setup. https://wix.github.io/react-native-navigation/v2/#/docs/Installing all 11 steps.

shuvo0074 avatar Sep 18 '18 08:09 shuvo0074

react-native link after npm install

vankhoa01 avatar Sep 27 '18 02:09 vankhoa01

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?

TamasZumpfHBO avatar Oct 06 '18 07:10 TamasZumpfHBO

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:

#import "AppDelegate.h"

#import <React/RCTBundleURLProvider.h> #import <React/RCTRootView.h> #import <ReactNativeNavigation/ReactNativeNavigation.h>

@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:

  • #import <React/RCTBridgeDelegate.h>
  • @interface AppDelegate : UIResponder <UIApplicationDelegate, RCTBridgeDelegate>
  • @interface AppDelegate : UIResponder <UIApplicationDelegate> ...

lahlah84 avatar May 07 '19 12:05 lahlah84