Hello,
I have setup AWS in my Unity game and it works fine in the editor and on Android but when I test it on iOS it doesn't seem to access AWS properly.
I have added the NSAppTransportSecurity elements to my info.plist file but that doesn't seem to help.
If it helps, the services I'm using are Cognito and SimpleDB.
This is the error I get from the Xcode debugger when trying to access AWS:
NullReferenceException: A null value was found where an object instance was required. at Amazon.AWSConfigs.get_LoggingConfig () [0x00000] in :0 at Amazon.Runtime.ClientConfig..ctor () [0x00000] in :0 at Amazon.CognitoIdentity.AmazonCognitoIdentityConfig..ctor () [0x00000] in :0 at Amazon.CognitoIdentity.AmazonCognitoIdentityClient..ctor (Amazon.Runtime.AWSCredentials credentials, Amazon.RegionEndpoint region) [0x00000] in :0 at Amazon.CognitoIdentity.CognitoAWSCredentials..ctor (System.String accountId, System.String identityPoolId, System.String unAuthRoleArn, System.String authRoleArn, Amazon.RegionEndpoint region) [0x00000] in :0 at GameControl.get_Credentials
This is how credentials is defined:
private CognitoAWSCredentials _credentials;
public CognitoAWSCredentials Credentials
{
get
{
if (_credentials == null)
_credentials = new CognitoAWSCredentials("IDENTITY_POOL_HERE", RegionEndpoint.APSoutheast2);
return _credentials;
}
}
Thanks for any help
↧