Skip to content

Commit cc9387c

Browse files
authored
Update README.md
1 parent 1783ebd commit cc9387c

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,32 @@ gem install xcodeproj
3939
```bash
4040
react-native link instabug-reactnative
4141
```
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+
```
4268

4369
## Using Instabug
4470
1. To start using Instabug, import it into your `index.ios.js` and `index.android.js` file.

0 commit comments

Comments
 (0)