RxCoreLocation icon indicating copy to clipboard operation
RxCoreLocation copied to clipboard

Build Failed: 'showsBackgroundLocationIndicator' is only available in iOS 11.0 or newer

Open newoo opened this issue 3 years ago • 7 comments

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

newoo avatar Feb 11 '21 09:02 newoo

The underlying API is only supported from iOS 11

@available(iOS 11.0, *)
open var showsBackgroundLocationIndicator: Bool

what's your target?

bobgodwinx avatar Feb 17 '21 10:02 bobgodwinx

I changed my target to iOS 11.0. #41

newoo avatar Mar 01 '21 06:03 newoo

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 avatar Apr 29 '21 14:04 norbdev

@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?

newoo avatar May 10 '21 15:05 newoo

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 { ^

norbdev avatar May 11 '21 07:05 norbdev

Any updated?

norbdev avatar Jun 23 '21 12:06 norbdev

Any update? @newoo

norbdev avatar Oct 08 '21 13:10 norbdev