|
|
|
|
17
|
|
17
|
|
18
|
2. 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](https://facebook.github.io/react-native/docs/linking-libraries-ios.html#step-2)).
|
18
|
2. 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](https://facebook.github.io/react-native/docs/linking-libraries-ios.html#step-2)).
|
19
|
|
19
|
|
20
|
-2b. If you're seeing an error message in Xcode such as:
|
|
|
21
|
-```
|
|
|
22
|
-'ReactNativeNavigation/ReactNativeNavigation.h' file not found.
|
|
|
23
|
-```
|
|
|
24
|
-You may also need to add a Header Search Path: ([screenshots](https://facebook.github.io/react-native/docs/linking-libraries-ios.html#step-3)).
|
|
|
25
|
-```objectivec
|
|
|
26
|
-$(SRCROOT)/../node_modules/react-native-navigation/lib/ios
|
|
|
27
|
-```
|
|
|
|
|
20
|
+ a. If you're seeing an error message in Xcode such as:
|
|
|
21
|
+ ```
|
|
|
22
|
+ 'ReactNativeNavigation/ReactNativeNavigation.h' file not found.
|
|
|
23
|
+ ```
|
|
|
24
|
+ You may also need to add a Header Search Path: ([screenshots](https://facebook.github.io/react-native/docs/linking-libraries-ios.html#step-3)).
|
|
|
25
|
+ ```objectivec
|
|
|
26
|
+ $(SRCROOT)/../node_modules/react-native-navigation/lib/ios
|
|
|
27
|
+ ```
|
28
|
|
28
|
|
29
|
3. In Xcode, you will need to edit this file: `AppDelegate.m`. This function is the main entry point for your app:
|
29
|
3. In Xcode, you will need to edit this file: `AppDelegate.m`. This function is the main entry point for your app:
|
30
|
|
30
|
|
|
|
|
|
54
|
@end
|
54
|
@end
|
55
|
```
|
55
|
```
|
56
|
|
56
|
|
57
|
-3a. If, in Xcode, you see the following error message in `AppDelegate.m` next to `#import "RCTBundleURLProvider.h"`:
|
|
|
58
|
-```
|
|
|
59
|
-! 'RCTBundleURLProvider.h' file not found
|
|
|
60
|
-```
|
|
|
61
|
-This is because the `React` scheme is missing from your project. You can verify this by opening the `Product` menu and the `Scheme` submenu.
|
|
|
62
|
-
|
|
|
63
|
-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.
|
|
|
|
|
57
|
+a. If, in Xcode, you see the following error message in `AppDelegate.m` next to `#import "RCTBundleURLProvider.h"`:
|
|
|
58
|
+ ```
|
|
|
59
|
+ ! 'RCTBundleURLProvider.h' file not found
|
|
|
60
|
+ ```
|
|
|
61
|
+ This is because the `React` scheme is missing from your project. You can verify this by opening the `Product` menu and the `Scheme` submenu.
|
|
|
62
|
+ 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.
|
64
|
|
63
|
|
65
|
-3b. If, in Xcode, you see the following warning message in `AppDelegate.m` next to `#import "@implementation AppDelegate"`:
|
|
|
66
|
-```
|
|
|
67
|
-Class 'AppDelegate' does not conform to protocol 'RCTBridgeDelegate'
|
|
|
68
|
-```
|
|
|
69
|
-You can remove `RCTBridgeDelegate` from this file: `AppDelegate.h`:
|
|
|
70
|
-```diff
|
|
|
71
|
-- #import <React/RCTBridgeDelegate.h>
|
|
|
72
|
-- @interface AppDelegate : UIResponder <UIApplicationDelegate, RCTBridgeDelegate>
|
|
|
73
|
-+ @interface AppDelegate : UIResponder <UIApplicationDelegate>
|
|
|
74
|
- ...
|
|
|
75
|
-```
|
|
|
|
|
64
|
+ b. If, in Xcode, you see the following warning message in `AppDelegate.m` next to `#import "@implementation AppDelegate"`:
|
|
|
65
|
+ ```
|
|
|
66
|
+ Class 'AppDelegate' does not conform to protocol 'RCTBridgeDelegate'
|
|
|
67
|
+ ```
|
|
|
68
|
+ You can remove `RCTBridgeDelegate` from this file: `AppDelegate.h`:
|
|
|
69
|
+ ```diff
|
|
|
70
|
+ - #import <React/RCTBridgeDelegate.h>
|
|
|
71
|
+ - @interface AppDelegate : UIResponder <UIApplicationDelegate, RCTBridgeDelegate>
|
|
|
72
|
+ + @interface AppDelegate : UIResponder <UIApplicationDelegate>
|
|
|
73
|
+ ...
|
|
|
74
|
+ ```
|
76
|
|
75
|
|
77
|
### Installation with CocoaPods
|
76
|
### Installation with CocoaPods
|
78
|
|
77
|
|