Closed warpling closed 4 years ago
If anyone needs a branch that fixes this in the time being: https://github.com/warpling/McPicker-iOS
@warpling, with your version I'm getting Cannot override a Self return type with a non-Self
return type with Xcode 12 Beta 4.
Looks like it needs to return Self
and not McPickerBarButtonItem
Huh, strange. I didn't have to change that to be able to compile with Swift 5 in Xcode 12 (not sure which beta).
How to fix this man? Cannot override a Self return type with a non-Self
@UtkuDalmaz not sure. I just accepted the changes Xcode suggested and it compiled for me.
It may also depend on what you're using.
For me, with SPM and XcodeBeta 4/5, I needed to change 2 files that it was complaining about. The changes made though are different than in @warpling branch. If I get a chance, I'll make a branch.
Started on a fix for this. Checkout https://github.com/kmcgill88/McPicker-iOS/pull/69 comments more than welcome!
3.0.0
has been published and requires xcode 12.
Since updating and attempting to compile with Xcode 12 beta I've getting build errors from McPicker for these two functions
public class func flexibleSpace() -> McPickerBarButtonItem
public class func fixedSpace(width: CGFloat) -> McPickerBarButtonItem