このGistにはiOSDC Japan 2020で執筆された『Mint🌱でBrewfileとPodfileを滅殺!』の正誤表、コード片、リンク集が記載されています。
該当箇所 | 誤 | 正 |
---|---|---|
if mint list | grep -q 'SwiftLint'; then
mint run swiftlint
else
echo "error: SwiftLint not installed, run 'mint bootstrap' to install"
exit 1
fi
if [ $CONFIGURATION = "Debug" ]; then
mint run licenseplist \
--output-path $PRODUCT_NAME/Settings.bundle \
--github-token YOUR_GITHUB_TOKEN
fi
if mint list | grep -q 'R.swift'; then
mint run R.swift rswift generate "$SRCROOT/R.generated.swift"
else
echo "error: R.swift not installed; run 'mint bootstrap' to install"
return -1
fi
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: macos-latest
env:
MINT_PATH: ${{ github.workspace }}/mint/lib
steps:
- uses: actions/checkout@v2
- name: Brew install mint
run: brew install mint
- name: Cache mint packages
uses: actions/cache@v2
with:
path: ${{ env.MINT_PATH }}
key: ${{ runner.os }}-mint-${{ hashFiles('**/Mintfile') }}
restore-keys: ${{ runner.os }}-mint-
- name: Mint bootstrap
run: mint bootstrap
- name: Xcodebuild
run: xcodebuild -sdk iphonesimulator -configuration Debug build
// swift-tools-version:5.2
import PackageDescription
let package = Package(
name: "Tools",
dependencies: [
.package(url: "https://github.com/realm/SwiftLint.git", .upToNextMinor(from: "0.39.2"))
],
targets: [
.target(
name: "Dummy",
dependencies: [
.product(name: "swiftlint", package: "SwiftLint"),
],
path: ""
)
]
)
plugin 'cocoapods-binary'
target 'YourProjectName' do
use_frameworks!
pod 'SwiftLint', :binary => true
end
ピクシブ株式会社では、iOS/Android共にモバイルアプリエンジニアを募集しています!
僕たちと一緒に、世界中の人々の「好き」で彩られた人生を支えてみませんか?
また、「面接なしでカジュアルに話を聞いてみたい」という方は@FromAtomへDMなどでお気軽にご連絡ください。
- yonaskolb/Mint: A package manager that installs and runs executable Swift packages
- Bundler: The best way to manage a Ruby application's gems
- realm/SwiftLint: A tool to enforce Swift style and conventions.
- nicklockwood/SwiftFormat: A command-line tool and Xcode Extension for formatting Swift code
- Carthage/Carthage: A simple, decentralized dependency manager for Cocoa
- mono0926/LicensePlist: A license list generator of all your dependencies for iOS applications
- mac-cain13/R.swift: Strong typed, autocompleted resources like images, fonts and segues in Swift projects
- Bitrise - Mobile Continuous Integration and Delivery
- Actions | GitHub
- leavez/cocoapods-binary: integrate pods in form of prebuilt frameworks conveniently, reducing compile time