https://github.com/mokagio/cli-pods
How to use CocoaPods to install CLI tools, and GitHub actions to cache them
https://github.com/mokagio/cli-pods
automation cli cocoapods ios
Last synced: over 1 year ago
JSON representation
How to use CocoaPods to install CLI tools, and GitHub actions to cache them
- Host: GitHub
- URL: https://github.com/mokagio/cli-pods
- Owner: mokagio
- Created: 2020-01-18T05:08:07.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-07-22T05:33:49.000Z (almost 4 years ago)
- Last Synced: 2025-01-30T15:19:19.573Z (over 1 year ago)
- Topics: automation, cli, cocoapods, ios
- Language: Ruby
- Homepage:
- Size: 12.7 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
How to use CocoaPods to install CLI tools, and GitHub actions to cache them
### `Gemfile`
```ruby
# frozen_string_literal: true
source "https://rubygems.org"
# This commit matches the fix for an issue which would prevent us from defining
# a Podfile for CLI tools that doesn't generate the Pods project to integrate.
# See https://github.com/CocoaPods/CocoaPods/issues/9288.
gem 'cocoapods', git: 'https://github.com/cocoapods/cocoapods.git', ref: 'f848680c0b0f246b50a256f1e47758a91b8223a9'
# We need to specify cocoapods-core too, otherwise `bundle pod install` will
# fail with something similar to this
# https://github.com/CocoaPods/CocoaPods/issues/9231.
gem 'cocoapods-core', git: 'https://github.com/cocoapods/core.git', ref: '5c7c11df7b4d1626292f525e747fd2732666f99d'
```
### `Podfile`
```ruby
# This Podfile is configured to not integrate with an xcproject, because the
# only thing we are interested in is fetching CLI tools.
install! 'cocoapods',
integrate_targets: false,
skip_pods_project_generation: true
platform :ios, '13.0'
pod 'SwiftFormat/CLI', '~> 0.40'
pod 'SwiftLint', '~> 0.38'
```