Skip to content

Latest commit

 

History

History
56 lines (37 loc) · 1.14 KB

Installation.md

File metadata and controls

56 lines (37 loc) · 1.14 KB

Build / Install / Run

Rx doesn't contain any external dependencies.

These are currently supported options:

Manual

Open Rx.xcworkspace, choose RxExample and hit run. This method will build everything and run sample app

⚠️ IMPORTANT! For tvOS support CocoaPods 0.39 is required. ⚠️

# Podfile
use_frameworks!

target 'YOUR_TARGET_NAME' do
    pod 'RxSwift',    '~> 2.0'
    pod 'RxCocoa',    '~> 2.0'
    pod 'RxBlocking', '~> 2.0'
    pod 'RxTests',    '~> 2.0'
end

replace YOUR_TARGET_NAME, then type in the Podfile directory:

$ pod install

Xcode 7.1 required

Add this to Cartfile

github "ReactiveX/RxSwift" ~> 2.0
$ carthage update

Manually using git submodules

  • Add RxSwift as a submodule
$ git submodule add git@github.com:ReactiveX/RxSwift.git
  • Drag Rx.xcodeproj into Project Navigator
  • Go to Project > Targets > Build Phases > Link Binary With Libraries, click + and select RxSwift-[Platform] and RxCocoa-[Platform] targets