You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using this example on the swift 2 branch, the app builds, Ive set up the cloud code side, parse shows its signing up the users through the login screen when the app builds and runs on my phone but i get a constant activity spinner and the following error:
2015-09-09 08:43:46.789 Layer-Parse-iOS-Swift-Example[48891:3291859] LayerKit client v0.15.0 loaded
Failed to connect to Layer: Error Domain=com.layer.LayerKit.Errors Code=6000 "The client is already in the process of establishing a connection." UserInfo={NSLocalizedDescription=The client is already in the process of establishing a connection.}
fatal error: unexpectedly found nil while unwrapping an Optional value
(lldb)
/*
* 2. Acquire identity Token from Layer Identity Service
*/
PFCloud.callFunctionInBackground("generateToken", withParameters: ["nonce": nonce, "userID": userID]) { (object:AnyObject?, error: NSError?) -> Void in
if error == nil {
let identityToken = object as! String
self.layerClient.authenticateWithIdentityToken(identityToken) { authenticatedUserID, error in
if (!authenticatedUserID.isEmpty) {
if (completion != nil) {
completion(success: true, error: nil)
}
print("Layer Authenticated as User: \(authenticatedUserID)")
} else {
completion(success: false, error: error)
}
}
} else {
print("Parse Cloud function failed to be called to generate token with error: \(error)")
}
}
}
}
getting a Thread 1: Exc Breakpoint on this line of code " if(authenticatedUserID.isEmpty){
The text was updated successfully, but these errors were encountered:
@lhumphreys73 Thanks for reporting the issue. The app (swift 2 branch) seems like is running fine on both simulator and my iPhone (iOS 9 beta 3).
In order to isolate the issue, can you provide me these info?
Do you encounter the same problem:
on Xcode 7 simulator? (By the way, what is your Xcode 7 version?)
with Xcode 6 on both simulator and iPhone?
with https://github.com/layerhq/Layer-Parse-iOS-Example project?
If none of the above works, probably it is your Parse Cloud Code or configuration issue?
If any of the above works, then... mmm.. let me think. 😛
using this example on the swift 2 branch, the app builds, Ive set up the cloud code side, parse shows its signing up the users through the login screen when the app builds and runs on my phone but i get a constant activity spinner and the following error:
2015-09-09 08:43:46.789 Layer-Parse-iOS-Swift-Example[48891:3291859] LayerKit client v0.15.0 loaded
Failed to connect to Layer: Error Domain=com.layer.LayerKit.Errors Code=6000 "The client is already in the process of establishing a connection." UserInfo={NSLocalizedDescription=The client is already in the process of establishing a connection.}
fatal error: unexpectedly found nil while unwrapping an Optional value
(lldb)
getting a Thread 1: Exc Breakpoint on this line of code " if(authenticatedUserID.isEmpty){
The text was updated successfully, but these errors were encountered: