Release 0.4: Carthage Unpinned · Carthage/Carthage · GitHub
大きな変更としては、3つ!
1. ディレクトリ構造
以前は
Cartfile Cartfile.lock Carthage.build Carthage.checkout
だったのが
Cartfile Cartfile.resolved Carthage/ Build/ Checkouts/
になりました。
2. Cartfileで任意のブランチやタグが指定可能に
こんな感じ
# Require version 2.3.1 or later github "ReactiveCocoa/ReactiveCocoa" >= 2.3.1 # Require version 1.x github "Mantle/Mantle" ~> 1.0 # (1.0 or later, but less than 2.0) # Require exactly version 0.4.1 github "jspahrsummers/libextobjc" == 0.4.1 # Use the latest version github "jspahrsummers/xcconfigs" # Use a project from GitHub Enterprise, or any arbitrary server, on the "development" branch git "https://enterprise.local/desktop/git-error-translations.git" "development"
3. Carthage生成によるApp Storeリジェクト回避
Carthageを利用したプロジェクトをそのままリリースするとリジェクトされる問題について
iOS frameworks built with Carthage cannot be submitted to the App Store · Issue #188 · Carthage/Carthage · GitHub
こちらのissueで開発者達の苦労の後が見られて楽しいです。
Add `copy-framework` by robb · Pull Request #208 · Carthage/Carthage · GitHub
方法はREADMEにて説明されています。
Carthage/README.md at a8a6bb83229892e57530ac6096e85907078bd061 · Carthage/Carthage · GitHub
- Cartfile作成
- “General” settings tab, in the “Linked Frameworks and Libraries” sectionに追加したいframeworkをCarthage/Buildフォルダからドラッグ&ドロップ
- Run Script追加する
/usr/local/bin/carthage copy-frameworks
- “Input Files”にパスを追加する
$(SRCROOT)/Carthage/Build/iOS/LlamaKit.framework $(SRCROOT)/Carthage/Build/iOS/ReactiveCocoa.framework