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: README.md
+26Lines changed: 26 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -39,6 +39,32 @@ gem install xcodeproj
39
39
```bash
40
40
react-native link instabug-reactnative
41
41
```
42
+
### Installing using Cocoapods
43
+
Alternatively, for iOS you can use [CocoaPods](https://cocoapods.org/) for managing dependencies. After following the first step from the installation steps above, add the following to your `Podfile`:
44
+
45
+
```ruby
46
+
pod 'instabug-reactnative', :path => '../node_modules/instabug-reactnative'
47
+
pod 'React', :path => '../node_modules/react-native', :subspecs => [
48
+
'Core',
49
+
'CxxBridge',
50
+
'DevSupport'
51
+
]
52
+
pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
53
+
pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
54
+
pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/GLog.podspec'
55
+
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
56
+
```
57
+
And add the following post install script at the end of your `Podfile`:
58
+
59
+
```ruby
60
+
post_install do |installer|
61
+
installer.pods_project.targets.each do |target|
62
+
if target.name =="React"
63
+
target.remove_from_project
64
+
end
65
+
end
66
+
end
67
+
```
42
68
43
69
## Using Instabug
44
70
1. To start using Instabug, import it into your `index.ios.js` and `index.android.js` file.
0 commit comments