The aws docs for this are really confusing. Following the steps from here https://docs.aws.amazon.com/aws-mobile/latest/developerguide/getting-started.html#ios-swift , I created the awsconfiguration.json using amplify, but it seems to be empty, it looks like this:
{
"UserAgent": "aws-amplify/cli",
"Version": "0.1.0",
"IdentityManager": {
"Default": {}
}
}
I dragged that json into the root of my xcode project, but when I run the project trying to call an aws api (specifically rekognition), I get this error:
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'The service configuration is
nil
. You need to configureawsconfiguration.json
,Info.plist
or setdefaultServiceConfiguration
before using this method.'
I don't know if that's because the json isn't being read properly, or because it's empty, or what. This whole setup just seems to be a mess.