Skip to content

📚 Documentation: Apple App code snippet for step 3 throws Extraneous argument label 'status:' in call in Xcode #467

@erezhod

Description

@erezhod

💭 Description

When creating a new Apple App from the console and reaching step 3, the following code snippet appears:

let client = Client()
    .setEndpoint("http://localhost:3000/v1")
    .setProject("6496fd6f36368405265d")
    .setSelfSigned(status: true) // For self signed certificates, only use for development

When implemented in Xcode, it throws the following error: Extraneous argument label 'status:' in call, since the correct signature for the setSelfSigned method from the sdk-for-apple repo on line 145, requires no implementation of the status: label.

open func setSelfSigned(_ status: Bool = true) -> Client

Also, wasn't sure if this counts as a bug or a documentation issue, so I went with documentation. Hopefully it's not a problem.

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions