I just downloaded the GM release of Xcode 6 and it won\'t compile with this error:
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault
To add my case here. I got the described error whenever I mark the closure with [unowned self], but never reference the self in the closure itself.
For example:
request.startWithSuccess({ [unowned self] (req: CBRequest!, object: AnyObject!) -> Void in
if let result = object["result"] as? [NSObject: AnyObject]
{
popup.type = result["email"] == nil ? AuthPopupType.Signup : AuthPopupType.Login
}
else
{
println("WARNING: Malformed response for kCBCheckUniquenesPath request.")
}
}, failure: { (req: CBRequest!, err: NSError!) -> Void in
println("ERROR: Failure response for kCBCheckUniquenesPath request.")
})