- Home /
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?
Answer by umerPC · Jul 02, 2018 at 08:49 AM
I just upgraded to a newer unity version and the above method no longer works.
If you are experiencing this bug when switching to IL2CPP , the following fix worked for me on android:
1) Navigate to : C:\Program Files\Unity\Hub\Editor\2018.3.12f1\Editor\Data\$$anonymous$$onoBleedingEdge\lib\mono\unityjit 2) copy and paste these .dlls -system core,systemconfiguration,$$anonymous$$ono.Posix.dll into the desired platform you're building to . e.g. Assets/Plugins/Android.
For ios : 1) Navigate to Fix : C:\Program Files\Unity\Hub\Editor\2018.3.12f1\Editor\Data\$$anonymous$$onoBleedingEdge\lib\mono\unityjit 2) copy and paste these .dlls -system core,systemconfiguration
Your answer
Follow this Question
Related Questions
AWS .net issue with iOS - ServicePointManager[tls/ssl] 0 Answers
(Solved) IOS Build Error (Copying file failed) 2 Answers
[iOS] Managed DLL cannot find references to .Net framework DLLs 1 Answer
Can Unity work with a "Managed .NET assembly (NatNetML.dll) for use in .Net compatible clients"? 1 Answer
Using a .dll in Unity C# 1 Answer