{"action":"created","issue":{"url":"https://api.github.com/repos/mxcl/PromiseKit/issues/208","labels_url":"https://api.github.com/repos/mxcl/PromiseKit/issues/208/labels{/name}","comments_url":"https://api.github.com/repos/mxcl/PromiseKit/issues/208/comments","events_url":"https://api.github.com/repos/mxcl/PromiseKit/issues/208/events","html_url":"https://github.com/mxcl/PromiseKit/issues/208","id":90634877,"number":208,"title":"Global is external, but doesn't have external or weak linkage!","user":{"login":"XBeg9","id":872907,"avatar_url":"https://avatars.githubusercontent.com/u/872907?v=3","gravatar_id":"","url":"https://api.github.com/users/XBeg9","html_url":"https://github.com/XBeg9","followers_url":"https://api.github.com/users/XBeg9/followers","following_url":"https://api.github.com/users/XBeg9/following{/other_user}","gists_url":"https://api.github.com/users/XBeg9/gists{/gist_id}","starred_url":"https://api.github.com/users/XBeg9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XBeg9/subscriptions","organizations_url":"https://api.github.com/users/XBeg9/orgs","repos_url":"https://api.github.com/users/XBeg9/repos","events_url":"https://api.github.com/users/XBeg9/events{/privacy}","received_events_url":"https://api.github.com/users/XBeg9/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-24T10:25:04Z","updated_at":"2015-06-24T10:27:56Z","closed_at":null,"body":"Please help me, I am out of my mind. If you just use such code:\r\n\r\n```swift\r\nimport Foundation\r\nimport PromiseKit\r\nimport Alamofire\r\n\r\npublic class UserService {\r\n    class func login() -> Promise<User> {\r\n        return Promise { fulfill, reject in\r\n            Alamofire.request(.GET, \"http://httpbin.org/get\")\r\n                .responseString { (_, _, string, _) in\r\n                    fulfill(User())\r\n            }\r\n        }\r\n    }\r\n}\r\n```\r\n\r\nYou will get `Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1`\r\n\r\nand somewhere in log this one:\r\n\r\n```Global is external, but doesn't have external or weak linkage!\r\ni8* ()* @_TFFZFC10Placesbyme11UserService5loginFMS0_FT_GC10PromiseKit7PromiseCS_4User_U_FTFS3_T_FCSo7NSErrorT__T_auL_7fulfillFS3_T_\r\ninvalid linkage type for function declaration\r\ni8* ()* @_TFFZFC10Placesbyme11UserService5loginFMS0_FT_GC10PromiseKit7PromiseCS_4User_U_FTFS3_T_FCSo7NSErrorT__T_auL_7fulfillFS3_T_\r\nLLVM ERROR: Broken module found, compilation aborted!```"},"comment":{"url":"https://api.github.com/repos/mxcl/PromiseKit/issues/comments/114817669","html_url":"https://github.com/mxcl/PromiseKit/issues/208#issuecomment-114817669","issue_url":"https://api.github.com/repos/mxcl/PromiseKit/issues/208","id":114817669,"user":{"login":"XBeg9","id":872907,"avatar_url":"https://avatars.githubusercontent.com/u/872907?v=3","gravatar_id":"","url":"https://api.github.com/users/XBeg9","html_url":"https://github.com/XBeg9","followers_url":"https://api.github.com/users/XBeg9/followers","following_url":"https://api.github.com/users/XBeg9/following{/other_user}","gists_url":"https://api.github.com/users/XBeg9/gists{/gist_id}","starred_url":"https://api.github.com/users/XBeg9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XBeg9/subscriptions","organizations_url":"https://api.github.com/users/XBeg9/orgs","repos_url":"https://api.github.com/users/XBeg9/repos","events_url":"https://api.github.com/users/XBeg9/events{/privacy}","received_events_url":"https://api.github.com/users/XBeg9/received_events","type":"User","site_admin":false},"created_at":"2015-06-24T10:27:56Z","updated_at":"2015-06-24T10:27:56Z","body":"What I have tried already:\r\n1) Optimisation level is set `None`\r\n2) Tried `xcodebuild` to get exact error with no luck. \r\n3) A lot of possible code changes. If you drop `fulfill` inside other block, you should get error."}}