Appcenter-sdk-react-native: RN 0.59 Could not configure AppCenter for iOS.

Created on 13 Mar 2019  路  5Comments  路  Source: microsoft/appcenter-sdk-react-native

RN 0.59, facing an error when im trying to run react-native link:

Patching file ios/survey/AppDelegate.m
Could not configure AppCenter for iOS. Error Reason - 
        Could not find line "NSURL *jsCodeLocation;" in file AppDelegate.m.
        Update AppDelegate.m so that text is present, as we match on it and insert '  [AppCenterReactNative register];  // Initialize AppCenter ' after for AppCenter SDK integration.

image

Fixed by adding NSURL *jsCodeLocation; to AppDelegate.m (after curly braces)

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
  RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];
RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge
                                                   moduleName:@"survey"
                                            initialProperties:nil];
  NSURL *jsCodeLocation;

The same error is with AppCenterAnalytics and AppCenterCrashReports

bug

Most helpful comment

It should be released later this week.

All 5 comments

same here!

Hey @v0lume @schwamic,

Thanks for reporting this issue. It is caused by appcenter react-native linker script not yet compatible with RN v0.59. We're working on a fix and it should be shipped in the coming App Center RN SDK March release.

@dhei - when would that release ship? Thanks for all you do! 馃槃

It should be released later this week.

This bug has been fixed in the SDK March release.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

aprilmintacpineda picture aprilmintacpineda  路  5Comments

ionut-movila picture ionut-movila  路  8Comments

divyamakkar26 picture divyamakkar26  路  7Comments

Maximell picture Maximell  路  9Comments

zzorba picture zzorba  路  8Comments