Skip to content

Files

Latest commit

DKJoneDKJone
and
Dec 15, 2016
c0d0972 · Dec 15, 2016

History

History
30 lines (27 loc) · 806 Bytes

Enable_RxSwift.md

File metadata and controls

30 lines (27 loc) · 806 Bytes

返回目录

附录二 cocoapods

通过以下指令把 RxSwift.Resources.total 加入你的项目: CocoaPods

  1. 添加一个 post_install 在你的 Podfile中, 例如:
 target 'AppTarget' do
 pod 'RxSwift'
 end
 
 post_install do |installer|
     installer.pods_project.targets.each do |target|
         if target.name == 'RxSwift'
             target.build_configurations.each do |config|
                 if config.name == 'Debug'
                     config.build_settings['OTHER_SWIFT_FLAGS'] ||= ['-D', 'TRACE_RESOURCES']
                 end
             end
         end
     end
 end
  1. 执行 pod update.
  2. 编译项目 (ProductBuild).

Carthage

  1. 执行 carthage build --configuration Debug.
  2. 编译项目 (ProductBuild).