defaultS3
クライアントを使用するには、アプリのコードまたはinfo.plistファイルでデフォルトのSDK設定を設定する必要があります。 info.plistファイル経由でそれを行うには
:
あなたはcognito識別IDと以下のS3用プールIDと地域を交換する必要があります。コード
AWSCognitoCredentialsProvider *credentialsProvider = [[AWSCognitoCredentialsProvider alloc] initWithRegionType:CognitoRegionType
identityPoolId:CognitoIdentityPoolId];
AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:DefaultServiceRegionType
credentialsProvider:credentialsProvider];
AWSServiceManager.defaultServiceManager.defaultServiceConfiguration = configuration;
経由でそれを行うには
<key>AWS</key>
<dict>
<key>CredentialsProvider</key>
<dict>
<key>CognitoIdentity</key>
<dict>
<key>Default</key>
<dict>
<key>PoolId</key>
<string>YOUR_POOL_ID_HERE</string>
<key>Region</key>
<string>USEast1</string>
</dict>
</dict>
</dict>
<key>S3</key>
<dict>
<key>Default</key>
<dict>
<key>Region</key>
<string>USEast1</string>
</dict>
</dict>
</dict>
おかげで、 ローハン
はエラーがかなり明確ようです。 Info.plistをチェックしましたか?もしそうなら、あなたはまだそれを理解することができません、あなたはあなたの質問にそれを含める必要がありますそれ以外の場合私たちを助けることができなくなります。 – brandonscript
AWS s3 sdkとの統合中に、このようなことは何も言及していませんでした。 info.plistに何を含めるべきかわからない。統合のためにhttp://docs.aws.amazon.com/mobile/sdkforios/developerguide/setup.htmlを参照し、また統合のためにcocoapodsを使用しています... – Bhat