I’ve gone through the full manual installation of RAC4 using Git submodules and it’s not that bad but CocoaPods makes it easier to get it going. Using Carthage is another option and one that I may make a comparison with at a later date.
First, you have to know the latest release version of RAC4. The current release of ReactiveCococa is officially reported here.
I have found plugging in the latest release from that page into my
Podfile can enable the installation of a recent version of RAC4 from the CocoaPods specs on GitHub.
The CocoaPods Specs repository is here.
A better source of finding the correct version to use for pod installation is here as the CocoaPods Specs repository can be difficult to search due to the large number of entries.
The spec for RAC4 is not actively supported by the maintainers of ReactiveCocoa but there are third-party contributors.
CocoaPods Install of RAC4
As an example, the following
Podfile is sufficient for installing a specific version of RAC4 for use with Swift 2.1.1 using
pod install. I’ve tested this with CocoaPods 1.0.0.beta.2.
Content of my
source 'https://github.com/CocoaPods/Specs.git' use_frameworks! platform :ios, '9.0' target "MyXcodeTarget" do pod 'ReactiveCocoa', '= 4.0.0' end
These instructions successfully install the specified version of RAC4 using CocoaPods 1.0.0.beta.2.