From bbd4b5c9b40b936f8963170419baff83523e3fea Mon Sep 17 00:00:00 2001 From: Arnaud Vergnet Date: Mon, 1 Jun 2020 11:27:12 +0200 Subject: [PATCH] Fixed ios crash on startup --- ios/Campus.xcodeproj/project.pbxproj | 4 ++-- ios/Campus/AppDelegate.m | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ios/Campus.xcodeproj/project.pbxproj b/ios/Campus.xcodeproj/project.pbxproj index bd8bc07..c0e9dd4 100644 --- a/ios/Campus.xcodeproj/project.pbxproj +++ b/ios/Campus.xcodeproj/project.pbxproj @@ -323,7 +323,7 @@ CODE_SIGN_ENTITLEMENTS = Campus/application.entitlements; CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 1; + CURRENT_PROJECT_VERSION = 4; DEAD_CODE_STRIPPING = NO; DEVELOPMENT_TEAM = 6JA7CLNUV6; INFOPLIST_FILE = Campus/Info.plist; @@ -349,7 +349,7 @@ CODE_SIGN_ENTITLEMENTS = Campus/application.entitlements; CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 1; + CURRENT_PROJECT_VERSION = 4; DEVELOPMENT_TEAM = 6JA7CLNUV6; INFOPLIST_FILE = Campus/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; diff --git a/ios/Campus/AppDelegate.m b/ios/Campus/AppDelegate.m index fde05e2..5c69aae 100644 --- a/ios/Campus/AppDelegate.m +++ b/ios/Campus/AppDelegate.m @@ -51,7 +51,7 @@ static void InitializeFlipper(UIApplication *application) { #endif RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions]; - RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge moduleName:@"main" initialProperties:nil]; + RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge moduleName:@"Campus" initialProperties:nil]; rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1]; self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];