Getting started with ReactiveCocoa

Download reactive-cocoa eBook

Remarks

This section provides an overview of what reactive-cocoa is, and why a developer might want to use it.

It should also mention any large subjects within reactive-cocoa, and link out to the related topics. Since the Documentation for reactive-cocoa is new, you may need to create initial versions of those related topics.

Versions

VersionRelease date
5.0.0(Swift 3, Xcode 8.x, release notes)2017-01-16
4.2.2(Swift 2.2 & 2.3, Xcode 7.3 & 8.0, release notes)2016-07-18

Installation or Setup

ReactiveCocoa supports macOS 10.9+, iOS 8.0+, watchOS 2.0+, and tvOS 9.0+.

Carthage

If you use Carthage to manage your dependencies, simply add ReactiveCocoa to your Cartfile:

github "ReactiveCocoa/ReactiveCocoa" ~> 5.0
 

If you use Carthage to build your dependencies, make sure you have added ReactiveCocoa.framework , ReactiveSwift.framework , and Result.framework to the "Linked Frameworks and Libraries" section of your target, and have included them in your Carthage framework copying build phase.

CocoaPods

If you use CocoaPods to manage your dependencies, simply add ReactiveCocoa to your Podfile:

pod 'ReactiveCocoa', '~> 5.0.0'
 

Git submodule

Add the ReactiveCocoa repository as a submodule of your application’s repository.

Run

git submodule update --init --recursive 
 

from within the ReactiveCocoa folder.

Drag and drop ReactiveCocoa.xcodeproj , Carthage/Checkouts/ReactiveSwift/ReactiveSwift.xcodeproj , and Carthage/Checkouts/Result/Result.xcodeproj into your application’s Xcode project or workspace.

On the “General” tab of your application target’s settings, add ReactiveCocoa.framework , ReactiveSwift.framework , and Result.framework to the “Embedded Binaries” section.

If your application target does not contain Swift code at all, you should also set the EMBEDDED_CONTENT_CONTAINS_SWIFT build setting to “Yes”.

Stats

49 Contributors: 2
Monday, February 20, 2017
Licensed under: CC-BY-SA

Not affiliated with Stack Overflow
Rip Tutorial: info@zzzprojects.com

Download eBook