RxCoreLocation
RxCoreLocation copied to clipboard
Build Failed: 'showsBackgroundLocationIndicator' is only available in iOS 11.0 or newer
When I build my project at Xcode 12.5 beta, I got result that build failed xcode showed error message
'showsBackgroundLocationIndicator' is only available in iOS 11.0 or newer
in RxCoreLocation 1.5.0
The underlying API is only supported from iOS 11
@available(iOS 11.0, *)
open var showsBackgroundLocationIndicator: Bool
what's your target?
I changed my target to iOS 11.0. #41
I use Carthage 0.36.1 with the workaround, Xcode updated and I cant build the 1.5.0 with the same error. I cant't update RxSwift to 6.1.0 (RxMoya)
If I manually update the target to iOS 11.0 in the RxCoreLocation workspace then
./wcarthage build RxCoreLocation --platform iOS --cache-builds --no-use-binaries
it works
@norbdev Do you have same error at 1.5.1 or master branch? or because you use RxSwift 5.x, can't update to 6.x? so you need to use 1.5.0... right?
Do you have same error at 1.5.1 or master branch?
Yes, 1.5.1 is the same.
or because you use RxSwift 5.x, can't update to 6.x? so you need to use 1.5.0... right?
Right
the error:
Carthage/Checkouts/RxCoreLocation/Sources/RxKeyPaths.swift:17:78: error: 'showsBackgroundLocationIndicator' is only available in iOS 11.0 or newer static let showsBackgroundLocationIndicator = #keyPath(CLLocationManager.showsBackgroundLocationIndicator) ^ Carthage/Checkouts/RxCoreLocation/Sources/RxKeyPaths.swift:17:16: note: add @available attribute to enclosing static property static let showsBackgroundLocationIndicator = #keyPath(CLLocationManager.showsBackgroundLocationIndicator) ^ Carthage/Checkouts/RxCoreLocation/Sources/RxKeyPaths.swift:11:1: note: add @available attribute to enclosing extension extension String { ^
Any updated?
Any update? @newoo