Skip to content

Build in Unity for iOS fails with AWS libraries #2475

Open
@LoopIssuer

Description

@LoopIssuer

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions