You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[google_maps_flutter] iOS - undefined symbols for architecture #31104
I've been really struggling to get xcode to a build a project that uses google maps flutter.
I get the following errors:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_GMSMarker", referenced from:
objc-class-ref in google_maps_flutter(GoogleMapMarkerController.o)
"_OBJC_CLASS_$_GMSMutablePath", referenced from:
objc-class-ref in google_maps_flutter(GoogleMapPolylineController.o)
"_OBJC_CLASS_$_GMSCameraPosition", referenced from:
objc-class-ref in google_maps_flutter(GoogleMapController.o)
"_OBJC_CLASS_$_GMSCameraUpdate", referenced from:
objc-class-ref in google_maps_flutter(GoogleMapController.o)
"_OBJC_CLASS_$_GMSCoordinateBounds", referenced from:
objc-class-ref in google_maps_flutter(GoogleMapController.o)
"_OBJC_CLASS_$_GMSMapView", referenced from:
objc-class-ref in google_maps_flutter(GoogleMapController.o)
"_OBJC_CLASS_$_GMSPolyline", referenced from:
objc-class-ref in google_maps_flutter(GoogleMapPolylineController.o)
"_kGMSMinZoomLevel", referenced from:
_InterpretMapOptions in google_maps_flutter(GoogleMapController.o)
"_kGMSMaxZoomLevel", referenced from:
_InterpretMapOptions in google_maps_flutter(GoogleMapController.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I'm using a Flutter module embedded within an app. This app already uses Google Maps.
Are you able to provide a test app or exact reproduction steps that demonstrate the problem?
For reference, modules not supporting swift is being tracked with #23955.
@athomas@raja-bounce
Is working now. After leaving static_framework as false in podspec, it will work. But after static_framework remains true, it displays an error? ? ? ?
@hahazheng in which podspec you have added static_framework = true ?
it should be in Google_maps_flutter plugin podspec.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
josh-burton commentedon Apr 16, 2019
josh-burton commentedon Apr 16, 2019
I've done a bit more investigation and narrowed down the issue.
The issue is not directly with Flutter modules, but with Flutter projects created as objective c projects.
The error occurs when using google_maps_flutter along with a plugin that uses swift like 'geolocator', in a Flutter project that is objective c based.
Unfortunately Flutter modules use objective c and there isn't a way to change them to use swift.
calvinmuller commentedon Apr 24, 2019
You managed to find a solution to this, i'm also struggling with this issue using multi_image_picker and flutter_card_io?
josh-burton commentedon Apr 24, 2019
Unfortunately not.
Due to time constraints on this project, I had to use another mapping library (flutter_map).
josh-burton commentedon Jun 13, 2019
@jmagman I wonder if you might have any insight into this issue?
jmagman commentedon Jun 13, 2019
Are you able to provide a test app or exact reproduction steps that demonstrate the problem?
For reference, modules not supporting swift is being tracked with #23955.
josh-burton commentedon Jun 13, 2019
Thanks @jmagman. I'll try to come up with a sample project to replicate it as well.
raja-bounce commentedon Aug 2, 2019
any one got solution for this? i am facing this issue even i have tried with some simple single view application with swift. still getting this error
9 remaining items
khal-it commentedon Sep 24, 2019
s.static_framework = true worked for me
hahazheng commentedon May 2, 2020
any one got solution for this? i am facing this issue even i have tried with some simple single view application with swift. still getting this error
hahazheng commentedon May 2, 2020
@athomas @raja-bounce Is your problem solved, thank you
raja-bounce commentedon May 2, 2020
Its working now. After keeping static_framework true in podspec, it's working.
athomas commentedon May 4, 2020
I assume the mention in #31104 (comment) was intended for @athornz rather than me.
raja-bounce commentedon May 6, 2020
@hahazheng in which podspec you have added static_framework = true ?
it should be in Google_maps_flutter plugin podspec.
hahazheng commentedon May 6, 2020
raja-bounce commentedon May 6, 2020
Yes
raja-bounce commentedon May 6, 2020
@hahazheng what is the error you are getting in iPhone?
hahazheng commentedon May 7, 2020
i use : flutter build ios-framework --cocoapods

Simulator And Real machine Show error message
i use : flutter build ios --debug --no-codesign

Simulator Show error message
Real machine Show error message

flutter build ios-framework --cocoapods (Not included x86_64) ???
flutter build ios --debug --no-codesign (Not included arm64) ???
What is the difference between them in google_maps_flutter。。。
tiagoantunes commentedon Jun 17, 2020
Same behaviour, #59683 (Not fixed)
github-actions commentedon Aug 14, 2021
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.