Thomvis / BrightFutures

Write great asynchronous code in Swift using futures and promises
MIT License
1.9k stars 184 forks source link

Compile error with XCode 9.3 / Swift 3.3 #189

Closed coast111 closed 6 years ago

coast111 commented 6 years ago

I get the following compile error after upgrading to XCode 9.3. My project uses Swift 3.3. BrightFutures version is 5.1

..../......Pods/BrightFutures/Sources/BrightFutures/Result+BrightFutures.swift:48:16: Generic parameter 'T' could not be inferred

What are my options to resolve this?

markoftheweb commented 6 years ago

I think this fixed it ... https://github.com/Thomvis/BrightFutures/commit/ae62663680879eb141357f1dc95422814110586e I copied over to my project and compile error is gone 👍

By default the version introduced by the pod install step was prior to that commit.

Try using: pod 'BrightFutures', :git => 'https://github.com/Thomvis/BrightFutures.git', :tag => '6.0.1' in your Podfile. Hope this helped.