|
|
|
|
54
|
@end
|
54
|
@end
|
55
|
```
|
55
|
```
|
56
|
|
56
|
|
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.
|
|
|
63
|
-
|
|
|
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
|
- ```
|
|
|
|
|
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.
|
|
|
63
|
+
|
|
|
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
|
+ ```
|
75
|
|
75
|
|
76
|
### Installation with CocoaPods
|
76
|
### Installation with CocoaPods
|
77
|
|
77
|
|