iOS Access denied when trying to download file from Amazon S3 -


i have been able upload/download files ios app no problems. have created new bucket store new image files. when try download file created bucket following error:

[error domain=com.amazonaws.awss3errordomain  code=1 "the operation couldn’t completed. (com.amazonaws.awss3errordomain error 1.)"  userinfo=0x183a7760 {hostid=st+d3vvsztpkvpfxlvyes6b+pukuhuvzkjelypwvyhypk0wnjnalettjhfta2apuyhfttgzhqeg=,  code=accessdenied,  message=access denied,  requestid=662ba8ad07272a0c}] 

i have correctly added new bucket iam policy shown below

{     "version": "2012-10-17",     "statement": [         {             "effect": "allow",             "action": [                 "s3:putobject",                 "s3:getobject"             ],             "resource": [                 "arn:aws:s3:::oldbucket1/*",                 "arn:aws:s3:::oldbucket2/*",                 "arn:aws:s3:::newbucket/*"             ]         }     ] } 

this policy valid , worked before old buckets.