You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/index.md
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -104,7 +104,7 @@ To allow Firebase on iOS to use the credentials, the Firebase iOS SDK must be co
104
104
105
105
To do this, open your `/ios/{projectName}/AppDelegate.mm` file (or `AppDelegate.m` if on older react-native), and add the following:
106
106
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"'`:
108
108
109
109
```
110
110
#import <Firebase.h>
@@ -125,15 +125,16 @@ Within your existing `didFinishLaunchingWithOptions` method, add the following t
125
125
126
126
Beginning with firebase-ios-sdk v9+ (react-native-firebase v15+) you must tell CocoaPods to use frameworks.
127
127
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):
129
129
130
-
```
131
-
use_frameworks!
130
+
```ruby
131
+
use_frameworks!:linkage => :static
132
132
```
133
133
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:
135
135
136
136
```ruby
137
+
# right after `use_frameworks! :linkage => :static`
0 commit comments