Agontuk / react-native-geolocation-service

React native geolocation service for iOS and android
https://www.npmjs.com/package/react-native-geolocation-service
MIT License
1.61k stars 291 forks source link

Use of unresolved identifier ‘kCLLocationAccuracyReduced’ #241

Closed AmritpalSingh5 closed 3 years ago

AmritpalSingh5 commented 3 years ago

Getting this issue in iOS Use of unresolved identifier ‘kCLLocationAccuracyReduced’

AmritpalSingh5 commented 3 years ago

I solve by commenting the reduce case from switch statement , which is a temporary solution.

On Thu, Feb 4, 2021 at 10:57 AM Thang Phan Huu notifications@github.com wrote:

Me too

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Agontuk/react-native-geolocation-service/issues/241#issuecomment-773039781, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGSHMI5VI5GBDPO2TU46EWTS5IV33ANCNFSM4XAX2OFQ .

-- Best Regards, Amritpal Singh Emilence

ashu090990 commented 3 years ago

any update... I am also facing same issue

minhphan2510 commented 3 years ago

The same issue, have any solution?

AssafYehudai commented 3 years ago

Its an Identifier key in iOS 14, You need to update your xcode to version 12.4.

ShubhamBathe-KM commented 3 years ago

I am also facing the same issue..

Agontuk commented 3 years ago

As @AssafYehudai pointed out, you need to have latest xcode installed. There's no other way around it. This was introduced in ios 14

zoultrex commented 3 years ago

If there is a nice if checking for IOS 14, how come Xcode still complains?

image

Does anyone knows any workaround just so that the project can compile on Xcode 11 using simulator? The simulator will not use Geolocation anyway, so it's not a problem for me if this specific part of the feature is turned off...

AssafYBizzabo commented 3 years ago

The ios 14 check is for the version on the actual device. (on iphone/simulator at run time). As for Xcode itself, your Xcode version doesn't know the new ios 14 keys/k_constants, so it can't be compiled. update your Xcode.