{"action":"created","issue":{"url":"https://api.github.com/repos/mxcl/PromiseKit/issues/204","labels_url":"https://api.github.com/repos/mxcl/PromiseKit/issues/204/labels{/name}","comments_url":"https://api.github.com/repos/mxcl/PromiseKit/issues/204/comments","events_url":"https://api.github.com/repos/mxcl/PromiseKit/issues/204/events","html_url":"https://github.com/mxcl/PromiseKit/issues/204","id":89350883,"number":204,"title":"Swift 1.2 Compiler Crash","user":{"login":"lukasspiess","id":10158131,"avatar_url":"https://avatars.githubusercontent.com/u/10158131?v=3","gravatar_id":"","url":"https://api.github.com/users/lukasspiess","html_url":"https://github.com/lukasspiess","followers_url":"https://api.github.com/users/lukasspiess/followers","following_url":"https://api.github.com/users/lukasspiess/following{/other_user}","gists_url":"https://api.github.com/users/lukasspiess/gists{/gist_id}","starred_url":"https://api.github.com/users/lukasspiess/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukasspiess/subscriptions","organizations_url":"https://api.github.com/users/lukasspiess/orgs","repos_url":"https://api.github.com/users/lukasspiess/repos","events_url":"https://api.github.com/users/lukasspiess/events{/privacy}","received_events_url":"https://api.github.com/users/lukasspiess/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-18T17:32:40Z","updated_at":"2015-06-18T18:14:21Z","closed_at":"2015-06-18T17:54:46Z","body":"I am trying to use PromiseKit in one of our Swift projects to handle an authentication network request and it's request.\r\n\r\n```swift\r\nreturn AuthHelper.getToken().then { (result: AuthenticationResult) in\r\n            return Promise<[String]> { fufill, reject in\r\n                Alamofire.request(.GET, url).responseJSON { (req, res, json, err) in\r\n                        if (err != nil) {\r\n                            println(\"Error: \\(err)\")\r\n                            reject(err!)\r\n                        } else {\r\n                            println(\"Success: \\(url)\")\r\n                            let value = JSON(json!).arrayValue.map { $0.string! }\r\n                            fufill(value)\r\n                        }\r\n                }\r\n            }\r\n        }\r\n```\r\n\r\nUnfortunately, the Swift compiler crashes as soon as I use the `fulfill()` and `reject()`, the compiler crashes with a generic error:\r\n`Command /Applications/Xcode-6.3.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1`\r\n\r\nAny ideas what's causing this and how I could fix it? Thanks!"},"comment":{"url":"https://api.github.com/repos/mxcl/PromiseKit/issues/comments/113243722","html_url":"https://github.com/mxcl/PromiseKit/issues/204#issuecomment-113243722","issue_url":"https://api.github.com/repos/mxcl/PromiseKit/issues/204","id":113243722,"user":{"login":"mxcl","id":58962,"avatar_url":"https://avatars.githubusercontent.com/u/58962?v=3","gravatar_id":"","url":"https://api.github.com/users/mxcl","html_url":"https://github.com/mxcl","followers_url":"https://api.github.com/users/mxcl/followers","following_url":"https://api.github.com/users/mxcl/following{/other_user}","gists_url":"https://api.github.com/users/mxcl/gists{/gist_id}","starred_url":"https://api.github.com/users/mxcl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mxcl/subscriptions","organizations_url":"https://api.github.com/users/mxcl/orgs","repos_url":"https://api.github.com/users/mxcl/repos","events_url":"https://api.github.com/users/mxcl/events{/privacy}","received_events_url":"https://api.github.com/users/mxcl/received_events","type":"User","site_admin":false},"created_at":"2015-06-18T18:14:21Z","updated_at":"2015-06-18T18:14:21Z","body":"np 👊🏻"}}