awslabs / amazon-kinesis-video-streams-webrtc-sdk-ios

iOS SDK for interfacing with the Amazon Kinesis Video Streams Signaling Service.
Apache License 2.0
66 stars 29 forks source link

AWSMobileClient Sign In Error #69

Closed OwlRepo closed 1 year ago

OwlRepo commented 1 year ago

After updating to the latest MacOS and XCode version, any work around for this?

I have also tried to hard code the username and password to make sure there's a value but the error below still persists.

image
sirknightj commented 1 year ago

Hi @OwlRepo, was it working previously before updating, but after the update, it no longer works?

I am using MacOS 13.4 (22F66) and XCode 14.3 (14E222b) and can confirm it is working as of this version. Can you confirm that both your awsconfiguration.json and Constants.swift have their values in the correct places and none of the properties were accidentally swapped (example in the readme)?

image

Additionally, could you also confirm that the awsconfiguration.json is correctly formatted. That is, there are no missing ", :, or {. You can also use a json validator tool to confirm that the json object is formatted correctly.

When I removed one of the } from my awsconfiguration.json, I encountered the same error:

AWSMobileClient/AWSMobileClient+SignIn.swift:65: Fatal error: Unexpectedly found nil while unwrapping an Optional value
2023-06-19 16:25:29.798626-0700 AWSKinesisVideoWebRTCDemoApp[51205:6393314] AWSMobileClient/AWSMobileClient+SignIn.swift:65: Fatal error: Unexpectedly found nil while unwrapping an Optional value
OwlRepo commented 1 year ago

"Additionally, could you also confirm that the awsconfiguration.json is correctly formatted. That is, there are no missing ", :, or {. You can also use a json validator tool to confirm that the json object is formatted correctly."

This solved my issue. Thank you so much!