Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bolts Swift macOS Compiler Error in Xcode 10 #76

Closed
cliftonlabrum opened this issue Sep 21, 2018 · 3 comments
Closed

Bolts Swift macOS Compiler Error in Xcode 10 #76

cliftonlabrum opened this issue Sep 21, 2018 · 3 comments

Comments

@cliftonlabrum
Copy link

I just installed Parse via Cocoapods on Xcode 10. I'm using this Podfile:

def shared
  use_frameworks!
  pod 'Parse'
  pod 'ParseLiveQuery'  
end

target 'MyApp Mac' do
  shared
end

target 'MyApp iOS' do
  shared
end

...and my Mac app files to compile with the error:

Missing argument for parameter #1 in call - Task.swift

Screenshot:
error

I've tried deleting /DerivedData, cleaning the build folder, removing Podfile caches and reinstalling, and restarting Xcode.

Any ideas of what else I can try?

@ShawnBaek
Copy link

ShawnBaek commented Oct 27, 2018

I found the solution

Open the Bolt-Swift -> Task.swift -> emptyTask()
Change .success() -> .success(())

 class func emptyTask() -> Task<Void> {
        return Task<Void>(state: .success(()))
    }

@nlutsenko
Copy link
Member

This is fixed as of Bolts-Swift v1.4.0 by #64.

@holonight
Copy link

executor.execute {
self.trySet(state: TaskState.fromClosure()
}

pls help me fromClosure Missing argument for parameter #1 in call

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants