Skip to content

Commit 67eb1f6

Browse files
authored
docs(app): clarify iOS setup instructions, especially around use_frameworks
1 parent 5d7241b commit 67eb1f6

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

docs/index.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ To allow Firebase on iOS to use the credentials, the Firebase iOS SDK must be co
104104

105105
To do this, open your `/ios/{projectName}/AppDelegate.mm` file (or `AppDelegate.m` if on older react-native), and add the following:
106106

107-
At the top of the file, import the Firebase SDK:
107+
At the top of the file, import the Firebase SDK right after `'#import "AppDelegate.h"'`:
108108

109109
```
110110
#import <Firebase.h>
@@ -125,15 +125,16 @@ Within your existing `didFinishLaunchingWithOptions` method, add the following t
125125

126126
Beginning with firebase-ios-sdk v9+ (react-native-firebase v15+) you must tell CocoaPods to use frameworks.
127127

128-
Open the file `./ios/Podfile` and add this line inside your targets:
128+
Open the file `./ios/Podfile` and add this line inside your targets (right after the line calling the react native Podfile function to get the native modules config):
129129

130-
```
131-
use_frameworks!
130+
```ruby
131+
use_frameworks! :linkage => :static
132132
```
133133

134-
To use Static Frameworks on iOS, you also need to manually enable this for the project with the following global to the top of your `/ios/Podfile` file:
134+
To use Static Frameworks on iOS, you also need to manually enable this for the project with the following global to your `/ios/Podfile` file:
135135

136136
```ruby
137+
# right after `use_frameworks! :linkage => :static`
137138
$RNFirebaseAsStaticFramework = true
138139
```
139140

0 commit comments

Comments
 (0)