I followed these documents to set up a simple app using dynamoDB: https://docs.aws.amazon.com/aws-mobile/latest/developerguide/add-aws-mobile-nosql-database.html and https://docs.aws.amazon.com/aws-mobile/latest/developerguide/getting-started.html#add-aws-mobile-sdk-basic-setup
And then as a test I used the code provided to Create (Save) an Item.
Once ready to run the app, I get this error message:
Amazon DynamoDB Save Error: Error Domain=com.amazonaws.AWSCognitoIdentityErrorDomain Code=0 "(null)"
UserInfo={__type=com.amazon.coral.validate#ValidationException, message=Supplied AttributeValue is empty,
must contain exactly one of the supported datatypes}
After searching the net, I discovered there was a problem related to Swift 4. And the solution seems to be adding @objcMembers in front of the classes automatically generated by AWS.
But for me it did not work. The error stays the same. I also tried to set the swift version to 3.3 instead of 4.1 (I only have these 2 versions available), this also did not fix the issue.
Any idea on how to solve the issue?