AWSS3 Region / plist configuration issue 'The service configuration is `nil`

后端 未结 5 1724
梦毁少年i
梦毁少年i 2020-12-19 01:10

I am facing a strange issue with AWSS3.

Setup:

  • AWS Mobile HUB
  • Cognito
  • DynamoDB
  • S3

--> Cognito, Dynamo & e

5条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-19 01:43

    Swift 3 - Xcode 8.3.3

    For people still having this issue, I just spent 3h fighting against this annoying setup issue.

    I added both these chunks in my Info.plist (replace the variables between ** ** in the second bloc) and now it's working again.

    Amazon's documentation isn't updated properly I think. I hope this can save some people some time.

    NSAppTransportSecurity
        
            NSAllowsArbitraryLoads
            
            NSExceptionDomains
            
                amazonaws.com
                
                    NSThirdPartyExceptionMinimumTLSVersion
                    TLSv1.0
                    NSThirdPartyExceptionRequiresForwardSecrecy
                    
                    NSIncludesSubdomains
                    
                
                amazonaws.com.cn
                
                    NSThirdPartyExceptionMinimumTLSVersion
                    TLSv1.0
                    NSThirdPartyExceptionRequiresForwardSecrecy
                    
                    NSIncludesSubdomains
                    
                
            
        
    

    and:

    AWS
        
            CredentialsProvider
            
                CognitoIdentity
                
                    Default
                    
                        PoolId
                        **YourCognitoIdentityPoolId**
                        Region
                        **AWSRegionUnknown**
                    
                
            
            S3TransferManager
            
                Default
                
                    Region
                    **AWSRegionUnknown**
                
            
        
    

提交回复
热议问题