https://github.com/prenagha/alamofire-example
Example of alamofire command line Xcode project
https://github.com/prenagha/alamofire-example
Last synced: 2 months ago
JSON representation
Example of alamofire command line Xcode project
- Host: GitHub
- URL: https://github.com/prenagha/alamofire-example
- Owner: prenagha
- License: unlicense
- Created: 2016-02-05T14:42:08.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-06T04:15:39.000Z (over 9 years ago)
- Last Synced: 2025-04-02T05:43:40.867Z (3 months ago)
- Language: Swift
- Homepage:
- Size: 7.81 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
Command line XCode project example using
* swift
* [Carthage](https://github.com/Carthage/Carthage)
* [Alamofire](https://github.com/Alamofire/Alamofire)
* [swifty beaver](https://github.com/SwiftyBeaver/SwiftyBeaver)
* [Swift Command Line Project XCode Template](https://github.com/Zewo/Swift-Command-Line-Application-Template)Had some trouble getting Alamofire to work until someone helped me on [Stack Overflow](http://stackoverflow.com/questions/35211138/alamofire-cant-get-response-closure-to-execute)
The key was that by default the response handler gets called by Alamofire on the main thread, and main.swift is already running on the main thread, so the response handler is blocked. Once I got Alamofire directed to another thread/queue it all started working.
I highly recommend Erica Sadun's [Swift Documentation Markup](http://ericasadun.com/2016/01/15/updates-to-swift-documentation-markup/) book