Skip to content

Custom init() is not recognized anymore #247

Closed
@vdkdamian

Description

@vdkdamian

New Issue Checklist

Issue Description

There is a problem when using custom init() code on a ParseObject class.
I get the error Type 'User' does not conform to protocol 'ParseObject' on every ParseObject struct I use.
My code used to work, and all of a sudden it is broken.

Schermafbeelding 2021-10-01 om 17 59 22

Schermafbeelding 2021-10-01 om 18 00 02

Steps to reproduce

Add a init() function to your Parse struct, and add variables to it.

Actual Outcome

Unexpected error

Expected Outcome

Nothing

Environment

Client

  • Parse Swift SDK version: 1.10.0
  • Xcode version: 13.0
  • Operating system (iOS, macOS, watchOS, etc.): SPM
  • Operating system version: 12.0

Server

  • Parse Server version: 4.4.0
  • Operating system: Back4App
  • Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc): AWS

Database

  • System (MongoDB or Postgres): MongoDB
  • Database version: 3.6
  • Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc): ?

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:questionSupport or code-level question

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions