React-native-navigation: Yet Another RCCManager.h file not found With Fresh Install

Created on 26 Dec 2017  路  14Comments  路  Source: wix/react-native-navigation

Issue Description

I've tried 3 times with fresh installs, starting from scratch each time with react-native init, but I get stuck at the same place each time. The RCCManager.h file is not found and the project fails to build.

I tried so many times because I wasn't sure I had my environment setup correctly. I initially tried with node 9.2.0, dropped it down to 8.0.0 which is the latest react-native cli supports. Then one more for good measure.

Steps to Reproduce / Code Snippets / Screenshots

  1. react-native init MyApp
  2. yarn add react-native-navigation@latest
  3. Follow the iOS Installation Instructions manually

Here are screenshots of my configuration to prove I did everything right (fingers crossed I actually did)

2017-12-26_1036-1
2017-12-26_1036-2
2017-12-26_1036-3
2017-12-26_1036-4

Note about react-native-controller

This last one is to show that there's no react-native-controller folder anywhere. According to https://github.com/wix/react-native-navigation/issues/1, this is a dependency and should exist. NPM2 nested the folder deeper, but NPM3 would add it to the root. For this reason, NPM3 was recommended. I'm using NPM5, which I assume is fine. This is probably not the issue anylonger since it doesn't appear this package is a dependency of react-native-navigation any longer per it's react-native-navigation/package.json, but I'll include it here for completeness since the example/AppDelegate.m1 still references it.

2017-12-26_1036-5


Environment

  • React Native Navigation version: 1.1.322
  • React Native version: 0.51.0
  • Platform(s) (iOS, Android, or both?): ios
  • Device info (Simulator/Device? OS version? Debug/Release?): iPhone 8+, iPhone X

ignite doctor dump

System
platform darwin
arch x64
cpu 8 cores Intel(R) Core(TM) i7-4960HQ CPU @ 2.60GHz
directory /Users/ChrisGeirman/dev/mobile/playground/fq/FrogQuestApp

JavaScript
node 8.0.0 /Users/ChrisGeirman/.nvm/versions/node/v8.0.0/bin/node
npm 5.0.0 /Users/ChrisGeirman/.nvm/versions/node/v8.0.0/bin/npm
yarn 1.2.1 /usr/local/bin/yarn

React Native
react-native-cli 2.0.1
app rn version 0.51.0

Android
java 1.8.0_65 /usr/bin/java
android home - /usr/local/opt/android-sdk

iOS
xcode 9.2

Most helpful comment

I solved this issue by using #import "../../node_modules/react-native-navigation/ios/RCCManager.h" instead of #import "RCCManager.h" in AppDelegate.m

All 14 comments

I solved this issue by using #import "../../node_modules/react-native-navigation/ios/RCCManager.h" instead of #import "RCCManager.h" in AppDelegate.m

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If you believe the issue is still relevant, please test on the latest version and report back. Thank you for your contributions.

When you set up Header Search Paths, ensure it's being done for the Project and not for an individual Target (in the left panel in your third screenshot)

Additionally, in the same screenshot, where you see <Multiple values> is where you should be double clicking to enter $(SRCROOT)/../node_modules/react-native-navigation/ios. It is blank by default.

You don't need to expand the category to edit the Debug and Release rows as they will inherit what you entered.

"../../node_modules/react-native-navigation/ios/RCCManager.h" doesn't exist for me either. The ios folder isn't there.

EDIT: looks like we're being forced to migrate. Using the migrator worked.

EDIT 2: Nevermind. I solved this by installing react-native-camera AFTER this module. And make sure to use a pod install even though they say you don't need to.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If you believe the issue is still relevant, please test on the latest version and report back. Thank you for your contributions.

it's stale because no one is paying any attention, but it's still an issue

I am running into this issue also. I have no RCCManager.h at all.

Same issue, fresh project, fresh installation, no RCCManager.h even after

1.- Adding ReactNativeNavigation.xcodeproj to Libraries
2.- Adding lireactNativeNavigation.a to Link Binary
3.- Adding $(SRCROOT)/../node_modules/react-native-navigation/ios to PROJECT LEVEL header search paths...

I am seeing this issue. Tried all the above suggestions.

The same issue still happening. I am migrating from V1 to V2 and this is the issue I am stuck

Anyone find any solution for this?
I have already tried all the workarounds suggested above but nothing seems to work.

Still an issue. The file doesn't exist that I can see.

Hi guys! @narek11 @emilioheinz
I was migrating for v1 to v2 and from the docs I noticed:

1. The search path has changed, the v2 one is:
$(SRCROOT)/../node_modules/react-native-navigation/lib/ios

2. In AppDelegate.m, you don't need to import "RCCManager.h" any more, you have to import
#import <ReactNativeNavigation/ReactNativeNavigation.h> and add [ReactNativeNavigation bootstrap:jsCodeLocation launchOptions:launchOptions];

These changes got it working for me!

Still is an issue

Was this page helpful?
0 / 5 - 0 ratings