It's on XCode 6.2.
If I run in Apple release mode it will crash, but it does not crash with optimization. The code looks simple. I've done an overdose program for over a decade, so new to programming Not, etc.
I think that in 32 bit it's ok in the release mode (Fast-O), but 64-bit crashes on real iOS hardware
Is this a compiler bug? Or is it possible that only some compiler crashes for settings (which can be in C!), May be bad speed.
I include the code, but I'm not sure that it will help. class func trylogin (completionHandler: (result: JSON ?, error: NSError?) -> ()) {// It seems that these variables are fully optimized in 64 blocks Are not working with. Email = user.mail password = user Enter password / setup login Parameter: [String: AnyObject] = ["Action": "Login", "Login": ["Email": Email, "Password": Password, "Type": User. Type]] // Fire of the Rust Post Asynchronous request (.Post, Basic URL, parameters: parameters, encoding: .json) .responseSwiftyJSON {In the release mode on 64 bit in (Request, Feedback, JasonDict, Error), things here seriously Println ("jsonDict login attempt:") Print (jsonDict) if token = jsonDict ["login"] ["token"] string {println ("got token:" + token) User.token = token; User.email = email; User.password = password; Complete handler (results: jasondict, error: zero)} other {println ("not token") User.token = ""; User.email = ""; User.password = ""; Complete the Handsler (result: jsonDict, error: error)}}}
No comments:
Post a Comment