10000 rabbitmq-tutorials/swift at master · Next0011/rabbitmq-tutorials · GitHub
[go: up one dir, main page]

Skip to content
{"payload":{"allShortcutsEnabled":false,"path":"swift","repo":{"id":96601508,"defaultBranch":"master","name":"rabbitmq-tutorials","ownerLogin":"Next0011","currentUserCanPush":false,"isFork":true,"isEmpty":false,"createdAt":"2017-07-08T06:50:47.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/8623622?v=4","public":true,"private":false,"isOrgOwned":false},"currentUser":null,"refInfo":{"name":"master","listCacheKey":"v0:1633502359.659515","canEdit":false,"refType":"branch","currentOid":"89ea69ac1b715ff4ab9bb7f087832559d63d145d"},"tree":{"items":[{"name":"tutorial1","path":"swift/tutorial1","contentType":"directory"},{"name":"tutorial2","path":"swift/tutorial2","contentType":"directory"},{"name":"tutorial3","path":"swift/tutorial3","contentType":"directory"},{"name":"tutorial4","path":"swift/tutorial4","contentType":"directory"},{"name":"tutorial5","path":"swift/tutorial5","contentType":"directory"},{"name":".gitignore","path":"swift/.gitignore","contentType":"file"},{"name":"README.md","path":"swift/README.md","contentType":"file"},{"name":"bump_dependencies.sh","path":"swift/bump_dependencies.sh","contentType":"file"}],"templateDirectorySuggestionUrl":null,"readme":{"displayName":"README.md","richText":"\u003carticle class=\"markdown-body entry-content container-lg\" itemprop=\"text\"\u003e\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch1 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eSwift code for RabbitMQ tutorials\u003c/h1\u003e\u003ca id=\"user-content-swift-code-for-rabbitmq-tutorials\" class=\"anchor\" aria-label=\"Permalink: Swift code for RabbitMQ tutorials\" href=\"#swift-code-for-rabbitmq-tutorials\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eSwift code examples for the \u003ca href=\"http://www.rabbitmq.com/getstarted.html\" rel=\"nofollow\"\u003eRabbitMQ tutorials\u003c/a\u003e.\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eRequirements\u003c/h2\u003e\u003ca id=\"user-content-requirements\" class=\"anchor\" aria-label=\"Permalink: Requirements\" href=\"#requirements\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eTo run this code you need\n\u003ca href=\"https://github.com/Carthage/Carthage\"\u003eCarthage\u003c/a\u003e to pull down dependencies,\nwhich include the\n\u003ca href=\"https://github.com/rabbitmq/rabbitmq-objc-client\"\u003eObjective-C client\u003c/a\u003e itself.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eIf you have Homebrew installed, simply:\u003c/p\u003e\n\u003cdiv class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"brew install carthage\"\u003e\u003cpre\u003ebrew install carthage\u003c/pre\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eYou also need a running RabbitMQ server on localhost.\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eInstallation\u003c/h2\u003e\u003ca id=\"user-content-installation\" class=\"anchor\" aria-label=\"Permalink: Installation\" href=\"#installation\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eEach tutorial has its own Xcode project. Before the projects can be run, you\nneed to download and build their dependencies.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eFor example, to install tutorial 1:\u003c/p\u003e\n\u003cdiv class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"cd tutorial1\ncarthage bootstrap --platform iOS\"\u003e\u003cpre\u003e\u003cspan class=\"pl-c1\"\u003ecd\u003c/span\u003e tutorial1\ncarthage bootstrap --platform iOS\u003c/pre\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eYou should then be able to open \u003ca href=\"/Next0011/rabbitmq-tutorials/blob/master/swift/tutorial1/tutorial1.xcodeproj\"\u003ethe project\u003c/a\u003e in Xcode and hit Run. Output is\nNSLogged.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eSee \u003ca href=\"/Next0011/rabbitmq-tutorials/blob/master/swift/tutorial1/tutorial1/ViewController.swift\"\u003eViewController.swift\u003c/a\u003e for the\nimplementation (each tutorial has its own \u003ccode\u003eViewController.swift\u003c/code\u003e).\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eRunning the tutorials on master\u003c/h2\u003e\u003ca id=\"user-content-running-the-tutorials-on-master\" class=\"anchor\" aria-label=\"Permalink: Running the tutorials on master\" href=\"#running-the-tutorials-on-master\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eIf you're QAing a change, or just want to run these tutorials on the master version of the client, follow these steps.\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eEdit \u003ccode\u003eCartfile\u003c/code\u003e\u003c/h3\u003e\u003ca id=\"user-content-edit-cartfile\" class=\"anchor\" aria-label=\"Permalink: Edit Cartfile\" href=\"#edit-cartfile\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eChange the version number to the word \"master\"\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eClear Carthage cache and update\u003c/h3\u003e\u003ca id=\"user-content-clear-carthage-cache-and-update\" class=\"anchor\" aria-label=\"Permalink: Clear Carthage cache and update\" href=\"#clear-carthage-cache-and-update\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003e\u003ccode\u003erm -rf ~/Library/Caches/org.carthage.CarthageKit \u0026amp;\u0026amp; carthage update --platform iOS\u003c/code\u003e\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eRebuild the project in Xcode\u003c/h3\u003e\u003ca id=\"user-content-rebuild-the-project-in-xcode\" class=\"anchor\" aria-label=\"Permalink: Rebuild the project in Xcode\" href=\"#rebuild-the-project-in-xcode\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eIf there have been breaking changes, you might now need to make changes to the tutorial.\u003c/p\u003e\n\u003c/article\u003e","errorMessage":null,"headerInfo":{"toc":[{"level":1,"text":"Swift code for RabbitMQ tutorials","anchor":"swift-code-for-rabbitmq-tutorials","htmlText":"Swift code for RabbitMQ tutorials"},{"level":2,"text":"Requirements","anchor":"requirements","htmlText":"Requirements"},{"level":2,"text":"Installation","anchor":"installation","htmlText":"Installation"},{"level":2,"text":"Running the tutorials on master","anchor":"running-the-tutorials-on-master","htmlText":"Running the tutorials on master"},{"level":3,"text":"Edit Cartfile","anchor":"edit-cartfile","htmlText":"Edit Cartfile"},{"level":3,"text":"Clear Carthage cache and update","anchor":"clear-carthage-cache-and-update","htmlText":"Clear Carthage cache and update"},{"level":3,"text":"Rebuild the project in Xcode","anchor":"rebuild-the-project-in-xcode","htmlText":"Rebuild the project in Xcode"}],"siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2FNext0011%2Frabbitmq-tutorials%2Ftree%2Fmaster%2Fswift"}},"totalCount":8,"showBranchInfobar":true},"fileTree":{"":{"items":[{"name":"bin","path":"bin","contentType":"directory"},{"name":"clojure","path":"clojure","contentType":"directory"},{"name":"common-lisp","path":"common-lisp","contentType":"directory"},{"name":"dotnet-visual-studio","path":"dotnet-visual-studio","contentType":"directory"},{"name":"dotnet","path":"dotnet","contentType":"directory"},{"name":"elixir","path":"elixir","contentType":"directory"},{"name":"erlang","path":"erlang","contentType":"directory"},{"name":"go","path":"go","contentType":"directory"},{"name":"haskell","path":"haskell","contentType":"directory"},{"name":"java-idea","path":"java-idea","contentType":"directory"},{"name":"java","path":"java","contentType":"directory"},{"name":"javascript-nodejs","path":"javascript-nodejs","contentType":"directory"},{"name":"objective-c","path":"objective-c","contentType":"directory"},{"name":"perl","path":"perl","contentType":"directory"},{"name":"php-amqp","path":"php-amqp","contentType":"directory"},{"name":"php","path":"php","contentType":"directory"},{"name":"python","path":"python","contentType":"directory"},{"name":"ruby","path":"ruby","contentType":"directory"},{"name":"scala","path":"scala","contentType":"directory"},{"name":"spring-amqp","path":"spring-amqp","contentType":"directory"},{"name":"swift","path":"swift","contentType":"directory"},{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":".travis.yml","path":".travis.yml","contentType":"file"},{"name":"LICENSE.txt","path":"LICENSE.txt","contentType":"file"},{"name":"Makefile","path":"Makefile","contentType":"file"},{"name":"README.md","path":"README.md","contentType":"file"},{"name":"test.py","path":"test.py","contentType":"file"},{"name":"travisci.py","path":"travisci.py","contentType":"file"}],"totalCount":28}},"fileTreeProcessingTime":8.295530000000001,"foldersToFetch":[],"treeExpanded":true,"symbolsExpanded":false,"csrf_tokens":{"/Next0011/rabbitmq-tutorials/branches":{"post":"K5L0wteWT_-Rvj5y5xRexNTZHnZwRJsXDHgHSq1U7yP3LDJtRqi2Usx_DnWT5MFtzzuVSQKCO1Zof22M5VQGwQ"},"/Next0011/rabbitmq-tutorials/branches/fetch_and_merge/master":{"post":"2yFm8sZJzbv9LEavGYInFqapOwK_EUfkg0lQL06DxOjqsnGbgOA-2oiqox5BXtrx4KaGIXkZTQi7qc7hdhojnw"},"/Next0011/rabbitmq-tutorials/branches/fetch_and_merge/master?discard_changes=true":{"post":"_fixJNpK-2heDrfQvz1pbdy206xawSEFr9ctbMzBuU_Ma6ZNnOMICSuIUmHn4ZSKmrluj5zJK-mXN7Oi9FheOA"}}},"title":"rabbitmq-tutorials/swift at master · Next0011/rabbitmq-tutorials","appPayload":{"helpUrl":"https://docs.github.com","findFileWorkerPath":"/assets-cdn/worker/find-file-worker-7d7eb7c71814.js","findInFileWorkerPath":"/assets-cdn/worker/find-in-file-worker-1ae9fa256942.js","githubDevUrl":null,"enabled_features":{"code_nav_ui_events":false,"react_blob_overlay":false,"accessible_code_button":true,"github_models_repo_integration":false}}}
0