Swift code examples for the RabbitMQ tutorials.
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.
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
).
If you're QAing a change, or just want to run these tutorials on the master version of the client, follow these steps.
Cartfile
Change the version number to the word "master"
rm -rf ~/Library/Caches/org.carthage.CarthageKit && carthage update --platform iOS
If there have been breaking changes, you might now need to make changes to the tutorial.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。