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

RNNavV2Auth has not been registered #1

Open
felix0324324 opened this issue Aug 30, 2018 · 5 comments
Open

RNNavV2Auth has not been registered #1

felix0324324 opened this issue Aug 30, 2018 · 5 comments

Comments

@felix0324324
Copy link

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

@NagarajRaju
Copy link

NagarajRaju commented Sep 15, 2018

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.

@shuvo0074
Copy link

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

@vankhoa01
Copy link

react-native link after npm install

@TamasZumpfHBO
Copy link

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?

@lahlah84
Copy link

lahlah84 commented May 7, 2019

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>

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