Comments (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.
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.
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.
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.
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.
I had to do this:
pod 'Bolts-Swift', :git => 'https://github.com/BoltsFramework/Bolts-Swift', :commit => 'e9baa72d04521c3b25ef4fa6fef12b340953ee02'
from bolts-swift.
Thank you so much @akwilliamson :)
from bolts-swift.
@akwilliamson mind including how to point to the explicit repo for it?
from bolts-swift.
Fantastic, thanks for that @Tudmotu :)
from bolts-swift.
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.
Issue still persists, if the above solutions are not followed.
from bolts-swift.
thanks @sjmerel your specific commit worked for me too.
from bolts-swift.
Still having this issue. Tried all of the above.
from bolts-swift.
Related Issues (20)
- Support for iOS device 14.0 and Swift version 5.8 ?
- Enabling local datastore causes constant PFConsistencyAssert HOT 1
- 13 Issues on XCode 9 / iOS 11
- wowo
- Swift 4 update HOT 9
- Bumping the podspec version HOT 14
- How to know which task fails in chain of tasks?
- Value of type 'BFTask<AnyObject>' has no member 'continueOnSuccessWith' HOT 1
- pod install fetches incorrect files... HOT 1
- How to bring persistence
- Bolts Swift macOS Compiler Error in Xcode 10 HOT 3
- Swift 4.2 support
- 7 Semanic Issues on XCode 10.1 HOT 1
- Swift 5.0 Support HOT 4
- UIWebView deprecated HOT 1
- .xcconfig files for all targets are not found after opening the workspace HOT 1
- Swift 5.2 Support?
- Deprecated API Usage: UIWebView HOT 2
- Xcode version update Needed HOT 1
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 bolts-swift.