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
The npm install step above will automatically include our react framework and the core iOS framework in yur project. However depending on your app and its other dependecies you must integrate it in 1 of 3 ways
34
+
35
+
A. Static Libraries are the React Native default but since mParticle iOS contains swift code you need to add an exception for it in the from of a pre-install command in the Podfile.
33
36
```bash
34
-
$ # Update your Podfile to be ready to use dynamically linked frameworks by commenting out the following line
B&C. Frameworks are the default for Swift development and while it isn't preferred by React Native it is supported. Additionally you can define whether the frameworks are built staticly or dynamically.
53
+
54
+
Update your Podfile to be ready to use dynamically linked frameworks by commenting out the following line
55
+
```bash
56
+
# :flipper_configuration => flipper_config,
57
+
```
58
+
Then run either of the following commands
59
+
```
60
+
$ USE_FRAMEWORKS=static bundle exec pod install
61
+
```
62
+
or
63
+
```
39
64
$ USE_FRAMEWORKS=dynamic bundle exec pod install
40
65
```
41
66
67
+
3. Import and start the mParticle Apple SDK into Swift or Objective-C.
68
+
42
69
The mParticle SDK is initialized by calling the `startWithOptions` method within the `application:didFinishLaunchingWithOptions:` delegate call.
43
70
44
71
Preferably the location of the initialization method call should be one of the last statements in the `application:didFinishLaunchingWithOptions:`.
@@ -49,9 +76,6 @@ The `startWithOptions` method requires an options argument containing your key a
49
76
50
77
For more help, see [the iOS set up docs](https://docs.mparticle.com/developers/sdk/ios/getting-started/#create-an-input).
51
78
52
-
3. Import and start the mParticle Apple SDK into Swift or Objective-C.
0 commit comments