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?

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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ