Skip to content

Instantly share code, notes, and snippets.

@KentarouKanno
Last active September 29, 2016 14:18
Show Gist options
  • Save KentarouKanno/d68f249db87b93add1a4bc682e40860b to your computer and use it in GitHub Desktop.
Save KentarouKanno/d68f249db87b93add1a4bc682e40860b to your computer and use it in GitHub Desktop.
Carthage

Carthage

Carthage

★ homebrewでCarthageをインストールする

brew update
brew install carthage

★ Cartfile作成

touch Cartfile

★ RunScript

/usr/local/bin/carthage copy-frameworks

★ 特定のプラットフォームのみビルドする

carthage update --platform iOS

★ Cartfile記入例

# ------ APIKit --------

# https://github.com/ishkawa/APIKit
# $(SRCROOT)/Carthage/Build/iOS/Result.framework
# $(SRCROOT)/Carthage/Build/iOS/APIKit.framework 

github "ishkawa/APIKit" ~> 3.0


# ------ SwiftyJSON ------ 

# https://github.com/SwiftyJSON/SwiftyJSON
# $(SRCROOT)/Carthage/Build/iOS/SwiftyJSON.framework 

github "SwiftyJSON/SwiftyJSON"


# ------ SDWebImage ------ 

# https://github.com/rs/SDWebImage
# $(SRCROOT)/Carthage/Build/iOS/WebImage.framework 

github "rs/SDWebImage"


# ------ RxSwift --------

# https://github.com/ReactiveX/RxSwift
# $(SRCROOT)/Carthage/Build/iOS/RxSwift.framework
# $(SRCROOT)/Carthage/Build/iOS/RxCocoa.framework

github "ReactiveX/RxSwift" "3.0.0-beta.1"


# ------ SVProgressHUD --------

# https://github.com/SVProgressHUD/SVProgressHUD
# $(SRCROOT)/Carthage/Build/iOS/SVProgressHUD.framework

github "SVProgressHUD/SVProgressHUD"



# ------ KeychainAccess --------

# https://github.com/kishikawakatsumi/KeychainAccess
# $(SRCROOT)/Carthage/Build/iOS/KeychainAccess.framework

github "kishikawakatsumi/KeychainAccess"



# ------ realmSwift --------

# https://github.com/realm/realm-cocoa
# $(SRCROOT)/Carthage/Build/iOS/Realm.framework
# $(SRCROOT)/Carthage/Build/iOS/RealmSwift.framework
github "realm/realm-cocoa"

ç
# ------ TTTAttributedLabel --------

# https://github.com/TTTAttributedLabel/TTTAttributedLabel
# $(SRCROOT)/Carthage/Build/iOS/TTTAttributedLabel.framework

github "TTTAttributedLabel/TTTAttributedLabel"


# ------ R.swift --------

# https://github.com/mac-cain13/R.swift
# $(SRCROOT)/Carthage/Build/iOS/Rswift.framework

github "mac-cain13/R.swift.Library"



# ------ VTAcknowledgementsViewController --------

# https://github.com/vtourraine/VTAcknowledgementsViewController
# $(SRCROOT)/Carthage/Build/iOS/VTAcknowledgementsViewController.framework

github "vtourraine/VTAcknowledgementsViewController"



# ------ Himotoki --------

# https://github.com/ikesyo/Himotoki
# $(SRCROOT)/Carthage/Build/iOS/Himotoki.framework

github "ikesyo/Himotoki" ~> 3.0


# ------ mailcore2 --------

# https://github.com/MailCore/mailcore2
# $(SRCROOT)/Carthage/Build/iOS/mailcore2.framework

github "MailCore/mailcore2"

★ 記載している全てのライブラリをBuildする

carthage update

★ 特定のライブラリのみビルドする

carthage update mailcore2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment