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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠