GM release of Xcode 6 compile

前端 未结 21 2435
难免孤独
难免孤独 2020-12-02 15:37

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         


        
21条回答
  •  执念已碎
    2020-12-02 16:15

    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.")
            })
    

提交回复
热议问题