Ich bin mit a-React native App auf meinem iPhone, scheint die App fein zu laden, aber wenn ich schütteln und ermöglichen Remote-JS Debuggen erhalte ich diese Fehlermeldung:Reagieren Native Remote Debugger nicht auf dem iPhone arbeitet
Ich habe versucht, folgende React-Native-Dokumente https://facebook.github.io/react-native/docs/running-on-device-ios.html jedoch scheint es veraltet.
AppDelegate.m
#import "AppDelegate.h"
#import "RCTBundleURLProvider.h"
#import "RCTRootView.h"
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
NSURL *jsCodeLocation;
[[RCTBundleURLProvider sharedSettings] setDefaults];
jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil];
RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
moduleName:@"abcrn123"
initialProperties:nil
launchOptions:launchOptions];
rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1];
self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
UIViewController *rootViewController = [UIViewController new];
rootViewController.view = rootView;
self.window.rootViewController = rootViewController;
[self.window makeKeyAndVisible];
return YES;
}
@end
Jede Hilfe wäre sehr dankbar, ich versuche, ein Reagieren Native App auf einem realen Gerät zu laufen und debuggen.
Danke, Doug.