Why is my iOS Swift generated SDK missing a defaultClient member?

0

I ran through the Calc REST API tutorial given in the API Gateway guide and everything worked perfectly when I ran test invocations via the AWS Console. But when I generate the iOS Swift SDK from the deployed stage 'SDK Generation' tab, unzip and import into my Xcode project, the defaultClient member is missing in <API-Name>Client.swift.

The README.md file that comes with the SDK reads as follows:

# Use the SDK in your project

1. Grab the `defaultClient` from your code

        let client = <API-Name>Client.defaultClient()

1. You can now call your method using the client SDK

Does anyone know why this would be missing?

motivus
已提问 5 年前182 查看次数
1 回答
1

There was an error in the README.md generated with the REST API iOS Swift SDK. It should have referred to default() and not defaultClient(). This was confirmed by the Amplify team here: https://github.com/aws-amplify/aws-sdk-ios/issues/1357.

motivus
已回答 5 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则