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 }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_MGLMapView", referenced from:
type metadata accessor for ObjectiveC.MGLMapView in ViewController.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
This is how my Podfile looks. Is this how is should be?
use_frameworks!
pod 'MapboxGL'
target 'MyApp' do
end
target 'MyAppTests' do
end
target 'MyAppUITests' do
end
Thank you very much. It is working now. And sorry for not finding the duplicate.
I am on CocoaPods 0.38.0.beta.2.
In fact, I only had to add "-ObjC" in one place. On Pods->Targets->MapboxGL->Other Linker Flags. Perhaps "-ObjC" could be added to ${MAPBOXGL_OTHER_LDFLAGS}?
Activity
friedbunny commentedon Jul 9, 2015
@halset Which version of CocoaPods are you using?
This could be CocoaPods weirdness, or it may be related to #1859.
friedbunny commentedon Jul 9, 2015
Or it could be that we just don't support Xcode 7 or Swift 2 yet — @1ec5?
friedbunny commentedon Jul 9, 2015
Actually, this looks like a dupe of #1847/#1849 — @halset could you follow the instructions in #1847 (comment) and report back?
halset commentedon Jul 9, 2015
Thank you very much. It is working now. And sorry for not finding the duplicate.
I am on CocoaPods 0.38.0.beta.2.
In fact, I only had to add "-ObjC" in one place. On Pods->Targets->MapboxGL->Other Linker Flags. Perhaps "-ObjC" could be added to ${MAPBOXGL_OTHER_LDFLAGS}?
friedbunny commentedon Jul 9, 2015
Glad you got this to work! We'll work on fixing this in #1849.