Skip to content

Latest commit

 

History

History
40 lines (32 loc) · 698 Bytes

Carthage.md

File metadata and controls

40 lines (32 loc) · 698 Bytes

#WechatKit

##Carthage

  • 安装Carthage
$ brew update
$ brew install carthage
  • 在项目根目录下创建Cartfile添加以下内容
github "starboychina/WechatKit"
  • 执行carthage update

    切换到项目目录执行

$ carthage update --platform ios
  • 在项目的Target -> Build Phases 中点击“+” -> New Run Script Phase

添加脚本

/usr/local/bin/carthage copy-frameworks

添加"Input Files"

$(SRCROOT)/Carthage/Build/iOS/Alamofire.framework
$(SRCROOT)/Carthage/Build/iOS/WechatKit.framework
  • 在项目的Target -> Build Settings -> Framework Search Paths 輸入:
$(SRCROOT)/Carthage/Build/iOS