Perfect icon indicating copy to clipboard operation
Perfect copied to clipboard

Example Authenticator Client Crashes when pressing Register button

Open kenthinson opened this issue 10 years ago • 1 comments

Hello. I downloaded the project. Started up the Auth server / iOS example. the IOS app crashes when pressing the register button. I get fatal error: 'try!' expression unexpectedly raised an error: Error Domain=NSCocoaErrorDomain Code=3840 "Invalid value around character 0." UserInfo={NSDebugDescription=Invalid value around character 0.}: file /Library/Caches/com.apple.xbs/Sources/swiftlang/swiftlang-703.0.18.1/src/swift/stdlib/public/core/ErrorType.swift, line 54

kenthinson avatar Apr 16 '16 08:04 kenthinson

@kenthinson I had the same problem. What I did was changing the end point address form localhost to the default perfect's address: let END_POINT_HOST = "0.0.0.0" in the Clients AppDelegate. I also did modify the App Transport Security in the Info plist. After that I also cleared the derived data in order to make sure that the index.mustache is displaying the login/register forms.

kamilczopek avatar Jun 30 '16 13:06 kamilczopek