Giter Club home page Giter Club logo

Comments (13)

akwilliamson avatar akwilliamson commented on July 17, 2024 13

This has been fixed in the pull request I submitted yesterday. Hopefully it gets merged. Until then, change .success() to .success(()) by added empty parentheses

Edit: Swift 4 changes have been merged.

from bolts-swift.

Tudmotu avatar Tudmotu commented on July 17, 2024 4

I think this is it @marchy:
https://guides.cocoapods.org/using/the-podfile.html#from-a-podspec-in-the-root-of-a-library-repo

Basically you should put this in your Podfile:

pod 'Bolts-Swift', :git => 'https://github.com/BoltsFramework/Bolts-Swift'

from bolts-swift.

akwilliamson avatar akwilliamson commented on July 17, 2024 3

That's because the podspec hasn't been updated to 1.4.0 yet since this repo doesn't seem to be well-looked-after. I posted an issue about it 3 weeks ago here. Until that happens you'll need to explicitly point to the repo in your Podfile.

from bolts-swift.

josmanperez avatar josmanperez commented on July 17, 2024 1

Hi! I'm using the latest release (1.3.0) and I'm still seeing that error.
Plus in the same file there is two warnings When calling this function in Swift 4 or later, you must pass a '()' tuple; did you mean for the input type to be '()'? and one error, but the error goes away when you fix the warning.

You've said that the changes have been merged but the latest release doesn't said anything about Swift 4 changes.

Thank you!

from bolts-swift.

CiraciNicolo avatar CiraciNicolo commented on July 17, 2024 1

I'm using this project via ParseLiveQuery and I'm still having this issue. It seems that the wrong commit is pulled.

from bolts-swift.

sjmerel avatar sjmerel commented on July 17, 2024 1

I had to do this:
pod 'Bolts-Swift', :git => 'https://github.com/BoltsFramework/Bolts-Swift', :commit => 'e9baa72d04521c3b25ef4fa6fef12b340953ee02'

from bolts-swift.

josmanperez avatar josmanperez commented on July 17, 2024

Thank you so much @akwilliamson :)

from bolts-swift.

marchy avatar marchy commented on July 17, 2024

@akwilliamson mind including how to point to the explicit repo for it?

from bolts-swift.

marchy avatar marchy commented on July 17, 2024

Fantastic, thanks for that @Tudmotu :)

from bolts-swift.

carnivash avatar carnivash commented on July 17, 2024

I am also using via ParseLiveQuery and the problem persists, i managed to fix the first error using the above suggestion:
change this: return Task(state: .success())
to this: return Task(state: .success(()))

but just below there is another problem on the line:

self.trySet(state: TaskState.fromClosure(closure))

Cannot convert value of type '(Void) throws -> TResult' to expected argument type '() throws ->

Is there any suggestion to fix this? Thanks.

from bolts-swift.

sambing avatar sambing commented on July 17, 2024

Issue still persists, if the above solutions are not followed.

from bolts-swift.

jeffreyjackson avatar jeffreyjackson commented on July 17, 2024

thanks @sjmerel your specific commit worked for me too.

from bolts-swift.

Verma-Mayank avatar Verma-Mayank commented on July 17, 2024

Still having this issue. Tried all of the above.

from bolts-swift.

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.