Skip to content

Commit 2b661b0

Browse files
committed
Add Gemfile
Add a `Gemfile` and updated the `npm` command to run CocoaPods via `bundle exec`, which ensures the right version of CocoaPods. There is some risk that user doesn't have Bundler but I think it should be fairly straightforward as to how to get it.
1 parent 821affb commit 2b661b0

File tree

4 files changed

+78
-2
lines changed

4 files changed

+78
-2
lines changed

Gemfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
source "https://rubygems.org"
2+
3+
gem 'cocoapods', '1.2.0'

Gemfile.lock

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
CFPropertyList (2.3.5)
5+
activesupport (4.2.8)
6+
i18n (~> 0.7)
7+
minitest (~> 5.1)
8+
thread_safe (~> 0.3, >= 0.3.4)
9+
tzinfo (~> 1.1)
10+
claide (1.0.1)
11+
cocoapods (1.2.0)
12+
activesupport (>= 4.0.2, < 5)
13+
claide (>= 1.0.1, < 2.0)
14+
cocoapods-core (= 1.2.0)
15+
cocoapods-deintegrate (>= 1.0.1, < 2.0)
16+
cocoapods-downloader (>= 1.1.3, < 2.0)
17+
cocoapods-plugins (>= 1.0.0, < 2.0)
18+
cocoapods-search (>= 1.0.0, < 2.0)
19+
cocoapods-stats (>= 1.0.0, < 2.0)
20+
cocoapods-trunk (>= 1.1.2, < 2.0)
21+
cocoapods-try (>= 1.1.0, < 2.0)
22+
colored (~> 1.2)
23+
escape (~> 0.0.4)
24+
fourflusher (~> 2.0.1)
25+
gh_inspector (~> 1.0)
26+
molinillo (~> 0.5.5)
27+
nap (~> 1.0)
28+
ruby-macho (~> 0.2.5)
29+
xcodeproj (>= 1.4.1, < 2.0)
30+
cocoapods-core (1.2.0)
31+
activesupport (>= 4.0.2, < 5)
32+
fuzzy_match (~> 2.0.4)
33+
nap (~> 1.0)
34+
cocoapods-deintegrate (1.0.1)
35+
cocoapods-downloader (1.1.3)
36+
cocoapods-plugins (1.0.0)
37+
nap
38+
cocoapods-search (1.0.0)
39+
cocoapods-stats (1.0.0)
40+
cocoapods-trunk (1.1.2)
41+
nap (>= 0.8, < 2.0)
42+
netrc (= 0.7.8)
43+
cocoapods-try (1.1.0)
44+
colored (1.2)
45+
escape (0.0.4)
46+
fourflusher (2.0.1)
47+
fuzzy_match (2.0.4)
48+
gh_inspector (1.0.3)
49+
i18n (0.8.1)
50+
minitest (5.10.1)
51+
molinillo (0.5.7)
52+
nanaimo (0.2.3)
53+
nap (1.1.0)
54+
netrc (0.7.8)
55+
ruby-macho (0.2.6)
56+
thread_safe (0.3.6)
57+
tzinfo (1.2.3)
58+
thread_safe (~> 0.1)
59+
xcodeproj (1.4.2)
60+
CFPropertyList (~> 2.3.3)
61+
activesupport (>= 3)
62+
claide (>= 1.0.1, < 2.0)
63+
colored (~> 1.2)
64+
nanaimo (~> 0.2.3)
65+
66+
PLATFORMS
67+
ruby
68+
69+
DEPENDENCIES
70+
cocoapods (= 1.2.0)
71+
72+
BUNDLED WITH
73+
1.12.5

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ You can check out the example project with the following instructions
147147

148148
For Running iOS:
149149

150-
1. If you don't have CocoaPods installed, run `sudo gem install cocoapods`
150+
1. If you don't have CocoaPods installed, run `bundle install`
151151
2. Install pods: `npm run build:pods`
152152
3. Run Example: `npm run run:ios`
153153

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"run:android": "react-native run-android --root ./example",
1111
"lint": "eslint ./",
1212
"ci": "npm run lint",
13-
"build:pods": "cd example/ios; pod install; cd -",
13+
"build:pods": "cd example/ios; bundle exec pod install; cd -",
1414
"postpublish": "npm run publish:maven",
1515
"publish:maven": "cd lib/android/ && ./gradlew clean check uploadArchives && cd -",
1616
"docs:clean": "rimraf _book",

0 commit comments

Comments
 (0)