How to include ReactiveCocoa 3.0 in an Xcode 7 project

I have a quick 2.0 project in xcode 7 beta 5 and you want to use ReactiveCocoa 3.0.

I managed to set up a project for xcode 6.3 and swift 1.2, but I can’t figure out how to do this for xcode 7 and swift2

There is a swift2 branch, but every method I find calls only calls in the main branch.

Clear step-by-step instructions will be very helpful.

+5
source share
1 answer

Edit
IMPORTANT: you need carthage 0.8.0 at least !!! And don't forget to select the Xcode 7 build tools with xcode-select


  • Install carthage via brew install carthage
  • If homebrew is not installed, see http://brew.sh
  • Create a file called Cartfile in the directory in which the Xcode project file lives
  • Add the following line as the contents of the Cartfile :
    github "ReactiveCocoa/ReactiveCocoa" "swift2"

  • Launch Terminal.app. cd to this folder and run:
    carthage update
    This will create .framework files in the Carthage/Build folder

  • Inside the build folder you will find two structures: ReactiveCocoa.framework and Result.framework (inside the iOS / OSX / WatchOS folder)
  • Drag both of these files into the Embedded binaries section of the Xcode General project file.
  • Build and run!
+8
source

All Articles