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

CocoaPods

:warning: IMPORTANT! For tvOS support CocoaPods 0.39 is required. :warning:

  1. # Podfile
  2. use_frameworks!
  3. target 'YOUR_TARGET_NAME' do
  4. pod 'RxSwift', '~> 2.0'
  5. pod 'RxCocoa', '~> 2.0'
  6. pod 'RxBlocking', '~> 2.0'
  7. pod 'RxTests', '~> 2.0'
  8. end

replace YOUR_TARGET_NAME, then type in the Podfile directory:

  1. $ pod install

Carthage

Xcode 7.1 required

Add this to Cartfile

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

Manually using git submodules

  • Add RxSwift as a submodule
  1. $ 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