Skip to content

Commit

Permalink
Fix deploy by installing cocoapods for macos integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
joshdholtz committed Oct 26, 2023
1 parent 246446c commit 1360a05
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,35 @@ jobs:
shell: /bin/bash --login -o pipefail
steps:
- checkout
- run:
name: Install cocoapods
command: |
gem uninstall -aIx cocoapods
# Create a temporary directory
mkdir -p ~/tmp_gem_install
# Change to the temporary directory
cd ~/tmp_gem_install
# Clone the Git repository
git clone https://github.com/CocoaPods/CocoaPods.git
git checkout 603eb91369b924b0f219193007ba0934d8bf1e96
# Change to the cloned repository directory
cd cocoapods
# Build the gem
gem build cocoapods.gemspec
# Install the gem in the temporary directory
gem install cocoapods-1.13.0.gem --install-dir ~/tmp_gem_install
pod --version
- run:
name: Check cocoapods version
command: |
pod --version
- setup-flutter
- replace-api-key
- build-flutter-project:
Expand Down
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@ gem 'fastlane'
gem 'cocoapods'
gem 'danger'

# https://github.com/CocoaPods/CocoaPods/issues/12081#issuecomment-1749571230
gem 'activesupport', '~> 7.0.8'

eval_gemfile("fastlane/Pluginfile")
3 changes: 2 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ GEM
xcodeproj (>= 1.13.0, < 2.0.0)
xcpretty (~> 0.3.0)
xcpretty-travis-formatter (>= 0.0.3)
ffi (1.16.1)
ffi (1.16.3)
fourflusher (2.3.1)
fuzzy_match (2.0.4)
gh_inspector (1.1.3)
Expand Down Expand Up @@ -319,6 +319,7 @@ PLATFORMS
x86_64-darwin

DEPENDENCIES
activesupport (~> 7.0.8)
cocoapods
danger
fastlane
Expand Down

0 comments on commit 1360a05

Please sign in to comment.