Skip to content

Latest commit

 

History

History

swift

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.