1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Carthageで入っている各ライブラリのSwiftバージョンを洗い出すシェル芸

Posted at

ABI Stability & Module Stability 対応しているライブラリはSwiftのバージョンを上げて carthage bootstrap --cache-builds してもキャッシュが効いてビルドが走らないが、その関係で複数のSwiftバージョンでビルドされたライブラリが混在する結果になる。

そこで、各ライブラリがどのバージョンでビルドされているのかが知りたくてシェルを書いた。

$ find Carthage/Build -name "*.version" -exec /usr/local/bin/jq '.iOS[] | [.name, .swiftToolchainVersion] | join(": ")' {} \; | cat | uniq | sed -r 's/\"//g'
result(例、一部抜粋)
KeychainAccess: 5.4.2 (swiftlang-1205.0.28.2 clang-1205.0.19.57)
SVProgressHUD: 
OHHTTPStubs: 5.5 (swiftlang-1300.0.31.1 clang-1300.0.29.1)
Device: 5.5 (swiftlang-1300.0.31.1 clang-1300.0.29.1)
Alamofire: 5.5 (swiftlang-1300.0.31.1 clang-1300.0.29.1)
RxBlocking: 5.5 (swiftlang-1300.0.31.1 clang-1300.0.29.1)
RxCocoa: 5.5 (swiftlang-1300.0.31.1 clang-1300.0.29.1)
RxRelay: 5.5 (swiftlang-1300.0.31.1 clang-1300.0.29.1)
RxSwift: 5.5 (swiftlang-1300.0.31.1 clang-1300.0.29.1)
RxTest: 5.5 (swiftlang-1300.0.31.1 clang-1300.0.29.1)
APIKit: 5.4.2 (swiftlang-1205.0.28.2 clang-1205.0.19.57)
CryptoSwift: 5.4.2 (swiftlang-1205.0.28.2 clang-1205.0.19.57)
FBSnapshotTestCase: 5.5 (swiftlang-1300.0.31.1 clang-1300.0.29.1)
MultipartFormDataParser: 5.5 (swiftlang-1300.0.31.1 clang-1300.0.29.1)
SDWebImage: 
SDWebImageMapKit: 

※空白になっているのはObj-C製なのでswiftToolchainVersionが存在しない

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?