Unable to pass aws credentials at runtime in iOS

I’ve been trying to pass in a access key id and a secret key but have been unsuccessful.

I have enabled breakpoints in xcode and I can see that the values (access key id and secret key) are populated in the variables but for some reason AWS cannot access them.

I have used environment.setenvironmentvariable aswell as defining the keys as static variables, however neither of them have worked -.-

I’m using the AWS .net sdk/ The application works fine on macOs and android, just iOS throws this exception.

Any suggestions?

Fixed!

https://answers.unity.com/questions/1309774/aws-in-ios-not-working.html?childToView=1524457#answer-1524457