diff --git a/packages/app/plugin/src/ios/appDelegate.ts b/packages/app/plugin/src/ios/appDelegate.ts index 8a0f31d86f..22043f3579 100644 --- a/packages/app/plugin/src/ios/appDelegate.ts +++ b/packages/app/plugin/src/ios/appDelegate.ts @@ -71,7 +71,7 @@ export function modifyObjcAppDelegate(contents: string): string { export function modifySwiftAppDelegate(contents: string): string { const methodInvocationBlock = `FirebaseApp.configure()`; const methodInvocationLineMatcher = - /(?:self\.moduleName\s*=\s*"([^"]*)")|(?:reactNativeFactory\?\.\s*startReactNative)/; + /(?:self\.moduleName\s*=\s*"([^"]*)")|(?:factory\.startReactNative\()/; // Add import if (!contents.includes('import FirebaseCore')) {