Git Product home page Git Product logo

Comments (9)

AnthonyMDev avatar AnthonyMDev commented on July 24, 2024

Thanks for the heads up. I'll look into this today!

from amazons3requestmanager.

AnthonyMDev avatar AnthonyMDev commented on July 24, 2024

@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.

saqibomer avatar saqibomer commented on July 24, 2024

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)
            }
        }
    }`

For your reference:

from amazons3requestmanager.

AnthonyMDev avatar AnthonyMDev commented on July 24, 2024

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.

saqibomer avatar saqibomer commented on July 24, 2024

I have updated to Alamofire 4.1.0. But stil got same error. Removing Response<S3BucketObjectList, NSError> fixed issue.

from amazons3requestmanager.

AnthonyMDev avatar AnthonyMDev commented on July 24, 2024

from amazons3requestmanager.

AnthonyMDev avatar AnthonyMDev commented on July 24, 2024

@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.

saqibomer avatar saqibomer commented on July 24, 2024

Here are versions which I am using
- Alamofire (4.1.0)
- AmazonS3RequestManager (1.0.4)

from amazons3requestmanager.

AnthonyMDev avatar AnthonyMDev commented on July 24, 2024
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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.