App does not start if I add the stuff to AppDelegate.m

When I add those two lines to AppDelegate.m, simulator fires up and nothing happens after that.

Environment

  1. Target Platform iOS:
  2. Development Operating System macOS Sierra:
  3. Build tools (Xcode: Version 8.3.3 (8E3004b), iPhone 6 ios 10.3):
"scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start",
    "test": "jest"
  },
  "dependencies": {
    "react": "16.0.0-alpha.12",
    "react-native": "0.46.1",
    "react-native-firebase": "^2.0.2"
  },
  "devDependencies": {
    "babel-jest": "20.0.3",
    "babel-preset-react-native": "2.1.0",
    "jest": "20.0.4",
    "react-test-renderer": "16.0.0-alpha.12"
  },
  "jest": {
    "preset": "react-native"
  }
#import "AppDelegate.h"
#import <Firebase.h>

#import <React/RCTBundleURLProvider.h>
#import <React/RCTRootView.h>

.
.
.

  rootViewController.view = rootView;
  self.window.rootViewController = rootViewController;
  [self.window makeKeyAndVisible];
  [FIRApp configure];
  return YES;
}

Author: Fantashit

1 thought on “App does not start if I add the stuff to AppDelegate.m

  1. I figured out and it was my mistake. I was copying the .plist file via finder. I added the file to the project within xcode. everything works now. I literally spent my entire weekend for this. I do not feel too highly of myself right now 🙂 please close. ty !

Comments are closed.

App does not start if I add the stuff to AppDelegate.m

When I add those two lines to AppDelegate.m, simulator fires up and nothing happens after that.

Environment

  1. Target Platform iOS:
  2. Development Operating System macOS Sierra:
  3. Build tools (Xcode: Version 8.3.3 (8E3004b), iPhone 6 ios 10.3):
"scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start",
    "test": "jest"
  },
  "dependencies": {
    "react": "16.0.0-alpha.12",
    "react-native": "0.46.1",
    "react-native-firebase": "^2.0.2"
  },
  "devDependencies": {
    "babel-jest": "20.0.3",
    "babel-preset-react-native": "2.1.0",
    "jest": "20.0.4",
    "react-test-renderer": "16.0.0-alpha.12"
  },
  "jest": {
    "preset": "react-native"
  }
#import "AppDelegate.h"
#import <Firebase.h>

#import <React/RCTBundleURLProvider.h>
#import <React/RCTRootView.h>

.
.
.

  rootViewController.view = rootView;
  self.window.rootViewController = rootViewController;
  [self.window makeKeyAndVisible];
  [FIRApp configure];
  return YES;
}

Author: Fantashit

2 thoughts on “App does not start if I add the stuff to AppDelegate.m

  1. I figured out and it was my mistake. I was copying the .plist file via finder. I added the file to the project within xcode. everything works now. I literally spent my entire weekend for this. I do not feel too highly of myself right now 🙂 please close. ty !

  2. Pingback: devops

Comments are closed.