Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
2 tasks done
erezhod opened this issue Jun 24, 2023 · 2 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@erezhod
Copy link
Contributor

erezhod commented Jun 24, 2023

馃挱 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?

@erezhod erezhod added the documentation Improvements or additions to documentation label Jun 24, 2023
@erezhod
Copy link
Contributor Author

erezhod commented Jun 24, 2023

Pull request #468 awaiting review.

@stnguyen90
Copy link
Contributor

@erezhod thanks for raising this! We'll take a look at the PR soon!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants