Skip to content

Multiple one2one/one2many/many2many relationships will not compile SWIFT #3946

Open
@bargeboss-chris

Description

@bargeboss-chris

Describe the bug

If you have a singular o2o/o2m/m2m relationship in a table the swift generated files by amplify will compile and run correctly. If there are multiple o2o/o2m/m2m relationships in a table that reference multiple different tables, the files generated will not compile.

Steps To Reproduce

Amplify generation 2

Xcode 16.2

used our code for our application as well as followed the tutorial in the documentation.  this reproduced on both scenarios.

Expected behavior

compile correctly.

Amplify Framework Version

6.12.0

Amplify Categories

DataStore

Dependency manager

Swift PM

Swift version

5

CLI version

1.4.6

Xcode version

16.2

Relevant log output

<details>
<summary>Log Messages</summary>


INSERT LOG MESSAGES HERE
```

Is this a regression?

No

Regression additional context

No response

Platforms

iOS

OS Version

iOS 18.2

Device

iPhone 16 pro

Specific to simulators

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiIssues related to the API categorypending-community-responseIssue is pending response from the issue requestorquestionGeneral question

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions