flutter-geolocator icon indicating copy to clipboard operation
flutter-geolocator copied to clipboard

Property 'sourceInformation' not found on object of type 'CLLocation

Open kururu-abdo opened this issue 3 years ago • 5 comments

i face this error when try to run on IOS:

Semantic Issue (Xcode): Property 'sourceInformation' not found on object of type 'CLLocation *'

kururu-abdo avatar Jul 18 '22 05:07 kururu-abdo

Any updates on this? badly need the solution since my app totally relies on location data, I am using geolocator: ^8.2.0

helendeguinion1 avatar Jul 23 '22 06:07 helendeguinion1

@kururu-abdo @hanko0206 thanks for reporting this issue. I can reproduce it when building a macOS/iOS application. I'm not sure what the problem is, but I solved it by building the application in xCode instead of through the terminal. I hope this will solve the issue for now. We will look into a proper solution for this, since it's incorrect behaviour.

florissmit1 avatar Aug 05 '22 10:08 florissmit1

i face this error when try to run on IOS:

Semantic Issue (Xcode): Property 'sourceInformation' not found on object of type 'CLLocation *'

akashsiddhpura avatar Sep 01 '22 04:09 akashsiddhpura

thanks i run it in Xcode and the error has gone

kururu-abdo avatar Sep 06 '22 07:09 kururu-abdo

I experienced this problem and tried multiple possible solutions such as version downgrade from geolocator: 9.0.1 to 8.2.0, flutter pub cache repair and even removing other packages that might have a conflict with geolocator package and also the suggested fix on building it on xcode.

What worked for me is adding geolocator_apple: 2.1.1+1 directly to the pubspec.yaml file and it's fixed. So probably need to check the latest version of geolocator_apple which the geolocator depends on. Thanks.

@akashsiddhpura @helendeguinion1 @florissmit1

ShinMyth avatar Sep 15 '22 06:09 ShinMyth

Hi, we was having the same problem, and it is because of xcode and flutter version, basically it is happening in Flutter 3 with some version of xcode previous to 13.2. For fix this, you need to build direct in xcode and then all flutter command should work again

jQuera avatar Jan 18 '23 14:01 jQuera