Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
newoo opened this issue Feb 11, 2021 · 7 comments

Comments

@newoo
Copy link
Member

newoo commented Feb 11, 2021

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

@bobgodwinx
Copy link
Member

The underlying API is only supported from iOS 11

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

what's your target?

@newoo
Copy link
Member Author

newoo commented Mar 1, 2021

I changed my target to iOS 11.0. #41

@norbdev
Copy link

norbdev commented Apr 29, 2021

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

@newoo
Copy link
Member Author

newoo commented May 10, 2021

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

@norbdev
Copy link

norbdev commented May 11, 2021

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
Copy link

norbdev commented Jun 23, 2021

Any updated?

@norbdev
Copy link

norbdev commented Oct 8, 2021

Any update? @newoo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants