aws / aws-sdk-net

The official AWS SDK for .NET. For more information on the AWS SDK for .NET, see our web site:
http://aws.amazon.com/sdkfornet/
Apache License 2.0
2.06k stars 854 forks source link

Build in Unity for iOS fails with AWS libraries #2475

Open LoopIssuer opened 1 year ago

LoopIssuer commented 1 year ago

Describe the bug

When building for iOS in Unity, got these exception and build fails: System.AggregateException: One or more errors occurred. (Value cannot be null. (Parameter 'definition'))

Build for Android is ok. When I remove AWS dll's - build for iOS is successful.

If I use "reimport All' in Unity, I get this error/warning message:

Failed to extract Amazon.V4ClientSection class of base type Amazon.Util.Internal.ConfigurationElement when inspecting Assets/Plugins/AWS/AWSSDK.S3.dll
UnityEditor.AssemblyHelper:ExtractAllClassesThatAreUserExtendedScripts (string,string[]&,string[]&,string[]&)

Expected Behavior

Build for iOS is successful.

Current Behavior

Build for iOS is failed with exception: System.AggregateException: One or more errors occurred. (Value cannot be null. (Parameter 'definition'))

Reproduction Steps

I used this tutorial to integrate with AWS: I had these libraries in my project: Amazon.Extensions.CognitoAuthentication AWSSDK.Account AWSSDK.CognitoIdentity AWSSDK.CognitoIdentityProvider AWSSDK.CognitoSync AWSSDK.Core AWSSDK.IdentityManagement AWSSDK.S3 AWSSDK.SecurityToken Microsoft.Bcl.AsyncInterfaces System.Runtime.CompilerServices.Unsafe System.Threading.Tasks.Extensions

Possible Solution

No response

Additional Information/Context

No response

AWS .NET SDK and/or Package version used

Don't know how to get version

Targeted .NET Platform

Unity .NET

Operating System and version

Windows 11

ashishdhingra commented 1 year ago

Needs review with the team.