Skip to content

App Store Connect Open API Spec Doesn't Compile #248

Open
@stherold

Description

I try to use your awesome tool to generate code for the App Store Connect API OpenApi Spec. This works great and the result are 500+ Swift files. But when I cd into the output directory and build using swift build I get a ton of compilation errors, mostly like:

out/Sources/Models/App.swift:789:34: error: generic parameter 'T' could not be inferred
                    `self` = try container.decodeIfPresent("self")
                                  ^

My environment is as follows:

Xcode 11.7 (11E801a)
Apple Swift version 5.2.4 (swiftlang-1103.0.32.9 clang-1103.0.32.53)
Target: x86_64-apple-darwin19.6.0

The minimum swift tools version , specified in the Package.swift is set to Swift 4. Maybe there is a problem?

Any idea, since you tool would be a huge time-/lifesaver 👍

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions