Skip to content

Commit 4601908

Browse files
none: adding cocoapods to fix error
1 parent cf68ea2 commit 4601908

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.circleci/config.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,17 +162,21 @@ jobs:
162162
- attach_workspace:
163163
at: ~/project
164164

165+
# Install Ruby and CocoaPods
165166
- run:
166-
name: Install Ruby version
167+
name: Install Ruby
167168
command: |
168169
brew install rbenv ruby-build
169-
RUBY_VERSION=$(cat .ruby-version)
170+
echo 'eval "$(rbenv init -)"' >> $BASH_ENV
171+
source $BASH_ENV
170172
173+
RUBY_VERSION=$(cat .ruby-version)
171174
rbenv install -s $RUBY_VERSION
172175
rbenv global $RUBY_VERSION
173176
rbenv rehash
174177
175178
gem install bundler
179+
gem install cocoapods
176180
177181
- <<: *setup_env_file
178182

@@ -188,8 +192,12 @@ jobs:
188192
working_directory: example/ios
189193
name: Install Pods
190194
command: |
191-
# Ensure we're using the correct Ruby version
195+
# Ensure we're using the correct Ruby environment
192196
eval "$(rbenv init -)"
197+
# Verify pod command is available
198+
which pod
199+
pod --version
200+
# Install pods
193201
pod install
194202
- save_cache:
195203
key: pod-dependencies-{{ checksum "~/project/example/ios/Podfile" }}

0 commit comments

Comments
 (0)