rabbitmq-tutorials/swift
2016-12-14 16:13:07 +03:00
..
tutorial1 Fix ViewController reference, force unwrapping of received payload 2016-12-14 16:01:38 +03:00
tutorial2 Ditto for Swift tutorial 2 2016-12-14 16:06:33 +03:00
tutorial3 Ditto for Swift tutorial 3 2016-12-14 16:08:39 +03:00
tutorial4 Ditto for Swift tutorial 4 2016-12-14 16:13:07 +03:00
tutorial5 Port objective-c tutorials to Swift 2016-12-12 10:43:58 +00:00
.DS_Store Port objective-c tutorials to Swift 2016-12-12 10:43:58 +00:00
.gitignore Port objective-c tutorials to Swift 2016-12-12 10:43:58 +00:00
bump_dependencies.sh Port objective-c tutorials to Swift 2016-12-12 10:43:58 +00:00
README.md Port objective-c tutorials to Swift 2016-12-12 10:43:58 +00:00

Swift code for RabbitMQ tutorials

Swift code examples for the RabbitMQ tutorials.

Requirements

To run this code you need Carthage to pull down dependencies, which include the Objective-C client itself.

If you have Homebrew installed, simply:

brew install carthage

You also need a running RabbitMQ server on localhost.

Installation

Each tutorial has its own Xcode project. Before the projects can be run, you need to download and build their dependencies.

For example, to install tutorial 1:

cd tutorial1
carthage bootstrap --platform iOS

You should then be able to open the project in Xcode and hit Run. Output is NSLogged.

See ViewController.swift for the implementation (each tutorial has its own ViewController.swift).

Running the tutorials on master

If you're QAing a change, or just want to run these tutorials on the master version of the client, follow these steps.

Edit Cartfile

Change the version number to the word "master"

Clear Carthage cache and update

rm -rf ~/Library/Caches/org.carthage.CarthageKit && carthage update --platform iOS

Rebuild the project in Xcode

If there have been breaking changes, you might now need to make changes to the tutorial.