flutter-geolocator
flutter-geolocator copied to clipboard
Property 'sourceInformation' not found on object of type 'CLLocation
i face this error when try to run on IOS:
Semantic Issue (Xcode): Property 'sourceInformation' not found on object of type 'CLLocation *'
Any updates on this? badly need the solution since my app totally relies on location data, I am using
geolocator: ^8.2.0
@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.
i face this error when try to run on IOS:
Semantic Issue (Xcode): Property 'sourceInformation' not found on object of type 'CLLocation *'
thanks i run it in Xcode and the error has gone
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
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