Comments (9)
Thanks for the heads up. I'll look into this today!
from amazons3requestmanager.
@saqibomer To confirm, is this a build error, or is this occuring at runtime? Also, are you trying to use Alamofire 4.0.1
or 4.1.0
. The newest version is 4.1.0
so I just wanted to confirm that wasn't a typo.
from amazons3requestmanager.
It is a build error. My environment is: Swift 3, Alamofire 4.0.1, Xcode 8.1.
Error: "Use of undeclared type 'Response'"
amazonS3Manager.listBucketObjects().responseS3Object { (response: Response < S3BucketObjectList, NSError>) in
if let files = response.result.value?.files {
for file in files {
print(file.path)
}
}
}`
from amazons3requestmanager.
Is there a reason why you haven't updated to Alamofire 4.1.0
? The library is building just fine for me against that version.
from amazons3requestmanager.
I have updated to Alamofire 4.1.0. But stil got same error. Removing Response<S3BucketObjectList, NSError>
fixed issue.
from amazons3requestmanager.
from amazons3requestmanager.
@saqibomer Can you confirm the version of this library you are using? Version 1.0.1
and up are using the new DataResponse
from Alamofire
.
from amazons3requestmanager.
Here are versions which I am using
- Alamofire (4.1.0)
- AmazonS3RequestManager (1.0.4)
from amazons3requestmanager.
amazonS3Manager.listBucketObjects().responseS3Object { (response: Response < S3BucketObjectList, NSError>) in
if let files = response.result.value?.files {
for file in files {
print(file.path)
}
}
}
In this code you need to change Response
to DataResponse
from amazons3requestmanager.
Related Issues (20)
- errorWithCode(_:failureReason:) is deprecated in Alamofire
- Add operation to find bucket location
- Xcode 8 GM - Swift 2.3 fails to compile HOT 3
- please lower spec dependency to ios 8 HOT 9
- Remove CommonCrypto
- Add support for Pre-Signed URLs
- Break out Alamofire dependency into subspec
- Update `download` example in Readme HOT 4
- S3BucketObjectList when using a delimiter doesn't extract the files correctly. HOT 2
- how to track the progress of uploading image or data or file to AS3RM HOT 1
- Example how get image from AWS and convert to UIImage? HOT 1
- Swift 2.3 release HOT 7
- Do amazonS3Manager.upload() function replace '+' character to white space character? HOT 2
- Chunk Upload & Download
- Add support multipart upload HOT 5
- Swift 4 support. HOT 2
- Xcode 9.0 beta compile error HOT 3
- Does not show any error on passing the wrong credentials HOT 1
- Can't compile several code snippets from Readme
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amazons3requestmanager.