RxCoreLocation icon indicating copy to clipboard operation
RxCoreLocation copied to clipboard

'showsBackgroundLocationIndicator' is only available in iOS 11.0

Open cahyofendhi opened this issue 3 years ago • 19 comments

i found error 'showsBackgroundLocationIndicator' is only available in iOS 11.0 inside RxKeyPaths.swift, how to solve this problem

cahyofendhi avatar May 10 '21 10:05 cahyofendhi

Could you tell me which version do you use now?

newoo avatar May 10 '21 15:05 newoo

Hi. Have same issue. Version 1.5.1. This issue appeared after Xcode 12.5 update

goncharik avatar May 11 '21 12:05 goncharik

Same here. For now I just modify: @available(iOS 11.0, *) static let showsBackgroundLocationIndicator = #keyPath(CLLocationManager.showsBackgroundLocationIndicator) and @available(iOS 11.0, *) public var showsBackgroundLocationIndicator: Observable<Bool> {

DavidFerreria avatar May 14 '21 14:05 DavidFerreria

Could you tell me which version do you use now?

version 1.5.1

cahyofendhi avatar May 18 '21 03:05 cahyofendhi

Thanks @cahyofendhi

newoo avatar May 19 '21 00:05 newoo

We are facing this too (version 1.5.0), but also only when switching from Xcode 12.4 (works fine) to Xcode 12.5 (shows the above mentioned failure) without any other changes to the project.

pschneider avatar May 19 '21 07:05 pschneider

Any Updates @cahyofendhi

ValeriyJefimov avatar May 26 '21 08:05 ValeriyJefimov

It appears that this issue has already been solved in Master, however there has not been a new release.

om55 avatar May 30 '21 12:05 om55

@bobgodwinx

om55 avatar May 30 '21 12:05 om55

Hello, Do you have a date to release a version with this fix?

bfaganello avatar Jun 10 '21 13:06 bfaganello

Hello !

Is this issue going to be addressed ? or should we stop using RxCoreLocation, it's breaking our CI :(

abouroubi avatar Aug 30 '21 13:08 abouroubi

+1

norbdev avatar Oct 08 '21 13:10 norbdev

The fix is in master branch, but @bobgodwinx didn't make new tag yet

santieduardo avatar Oct 08 '21 13:10 santieduardo

Hello @santieduardo do you think it will be pushed in the near future ?

I'm afraid to continue using this package if each time there is a critical issue, we need to wait a long time for it to be published.

abouroubi avatar Nov 03 '21 19:11 abouroubi

@abouroubi I have no ideia. @bobgodwinx doesn't seem to be too concerned about the community, unfortunately. Each release takes an average of almost 6 months. This is absurd, in my view.

santieduardo avatar Nov 04 '21 13:11 santieduardo

Look I am working on a very intensive time consuming app at the moment and if someone has the time for a fix and release the xcode 13.1 version I will approve it.. also if someone wants to take the ownership of the project I will give it to them.

Sorry guys for the delay.. My daily jib is currently taking up most time because of what we're building.. Alternative asap we finish xcode 13.1 integration I will have sometime to look into the framework

bobgodwinx avatar Nov 21 '21 08:11 bobgodwinx

1.5.1 has the same problem in Xcode Version 13.2.1 (13C100)

RxCoreLocation.build/Release-iphoneos/RxCoreLocation-iOS.build/Objects-normal/arm64/RxKeyPaths.bc
/Users/shenyj/Documents/Code/MyProject/PPILibrary/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)
                                                                             ^
/Users/shenyj/Documents/Code/MyProject/PPILibrary/Carthage/Checkouts/RxCoreLocation/Sources/RxKeyPaths.swift:17:16: note: add @available attribute to enclosing static property
    static let showsBackgroundLocationIndicator = #keyPath(CLLocationManager.showsBackgroundLocationIndicator)
               ^
/Users/shenyj/Documents/Code/MyProject/PPILibrary/Carthage/Checkouts/RxCoreLocation/Sources/RxKeyPaths.swift:11:1: note: add @available attribute to enclosing extension
extension String {
^

** ARCHIVE FAILED **

ShenYj avatar Jan 08 '22 18:01 ShenYj

If you don't want to wait for fix version in cocoa pods, use SPM for this library. Grad the source from master branch. ✅

mixdesign avatar Feb 02 '22 01:02 mixdesign

Now, the minimum target version is upgrade to 11.0, it seems like @available attribute is unnecessary.

ShenYj avatar Mar 26 '22 03:03 ShenYj