LocationPicker
LocationPicker copied to clipboard
Compilation error on XCode 10.2
Compilation error on XCode 10.2 Class: LocationItem In method: open override func isEqual(_ object: Any?) -> Bool
Error: Value of type 'AnyObject' has no member 'hashValue'
same issue
open override func isEqual(_ object: Any?) -> Bool { guard let object = object as AnyObject? else { return false } return object.hash == hash }
try this
+1 for the compilation issue
open override func isEqual(_ object: Any?) -> Bool {
guard let object = object else { return false }
return (object as AnyObject).hashValue == hashValue
}
Value of type AnyObject has no member hashValue
cc: @zhuorantan - @brandy2015 's fix seems to work, would you consider endorsing it and merge it into future releases ?
This error is already resolved on master but the podspec just didn't get updated (and no new version got released yet apparently).
+1 for compilation issue
podspec isn't updated yet !
For people wanting to still use this lib and not wait for an updated podspec or new release, you should be able to use the following:
For cocoapods:
pod 'LocationPickerViewController', :git => 'https://github.com/zhuorantan/LocationPicker.git', :branch => 'master'
For carthage:
github "JeromeTan1997/LocationPicker" "master"