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.
investigate compatibility with CocoaPods 0.38.0 betas #1849
A fix is ready in #1876, but we may not be able to publish the updated spec to CocoaPods for awhile. In the meantime, anyone on CocoaPods 0.38.0 should use this in their Podfile as a temporary workaround:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_MGLMapView", referenced from:
__TMaCSo10MGLMapView 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)
Cleaning the build folder didn't seem to fix the problem, but I started going through the other dependencies that I had in my Podfile, disabling them one at a time, and, after I disabled FXBlurView, everything was peachy again. Sorry for the wild goose chase.
How to solve this problem? I tried almost all solutions, but no use.
After I upgrade to the iOS 9.3, then I get the error :
"OBJC_CLASS$_MGLMapView",referenced from:
type metadata accessor for __ObjC.MGLMapView in ProductViewA.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I feel sleepy to this Mapbox-iOS-SDK, I delete it from cocoapods, download the sdk, and reset it by manual step by step with the README.md , but....no use!
I fall in love with this map`s appearance, but Why it is so difficult to use this sdk?
Hi @460122775, it’s possible that the issue you’re seeing is unrelated to the other issues described here, which were fixed long ago. A few questions for you, so we can better understand what’s going on:
Is your project written in Objective-C or Swift?
Is Bitcode enabled? (It should be enabled by default if you’re using a recent Xcode version.)
When you installed the SDK manually, did you install the dynamic framework or the static framework?
If you installed the static framework, did you add -ObjC to the OTHER_LDFLAGS build setting?
Does the error persist after cleaning your derived data (hold down Option and go to Product ‣ Clean Build Folder)?
Activity
friedbunny commentedon Jul 9, 2015
Per #1862 (comment), it appears that
-ObjCisn't being added to the "Pods" target's linker flags when using ~0.38.0.1ec5 commentedon Jul 9, 2015
Yes, that’s fallout from CocoaPods/CocoaPods#3537.
1ec5 commentedon Jul 10, 2015
A fix is ready in #1876, but we may not be able to publish the updated spec to CocoaPods for awhile. In the meantime, anyone on CocoaPods 0.38.0 should use this in their Podfile as a temporary workaround:
Force -ObjC in Mapbox GL pod
kylederkacz commentedon Aug 6, 2015
https://raw.githubusercontent.com/mapbox/mapbox-gl-native/1ec5-pod-038-1849/ios/MapboxGL.podspec is 404'ing. Is there a new podspec somewhere? (I tried the podspec from the master branch, but am still seeing this error)
1ec5 commentedon Aug 6, 2015
@kylederkacz, sorry, I should’ve updated this ticket. The issue has been fixed, so you can use the official podspec without a URL, as described here.
1ec5 commentedon Aug 6, 2015
Although the version in master should be fine, too. Can you check whether you have
-ObjCset according to this comment? Thanks.kylederkacz commentedon Aug 7, 2015
I added the linker flags and but it's still not working. Any ideas? (I'm pretty new to iOS dev)
Podfile:
1ec5 commentedon Aug 7, 2015
@kylederkacz, which versions of Xcode and the iOS SDK are you building with? Is
ViewControllerwritten in Swift or Objective-C?kylederkacz commentedon Aug 7, 2015
Xcode: Version 6.4 (6E35b)
iOS SDK: 8.4
ViewController: Swift
kylederkacz commentedon Aug 7, 2015
I've deleted the Pods dir and
pod cache clean --all... still no dice1ec5 commentedon Aug 7, 2015
Can you try going to Product ‣ Clean Build Folder (hold down option) and rebuilding?
kylederkacz commentedon Aug 7, 2015
Cleaning the build folder didn't seem to fix the problem, but I started going through the other dependencies that I had in my Podfile, disabling them one at a time, and, after I disabled FXBlurView, everything was peachy again. Sorry for the wild goose chase.
460122775 commentedon Mar 28, 2016
How to solve this problem? I tried almost all solutions, but no use.
After I upgrade to the iOS 9.3, then I get the error :
"OBJC_CLASS$_MGLMapView",referenced from:
type metadata accessor for __ObjC.MGLMapView in ProductViewA.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I feel sleepy to this Mapbox-iOS-SDK, I delete it from cocoapods, download the sdk, and reset it by manual step by step with the README.md , but....no use!
I fall in love with this map`s appearance, but Why it is so difficult to use this sdk?
1ec5 commentedon Mar 28, 2016
Hi @460122775, it’s possible that the issue you’re seeing is unrelated to the other issues described here, which were fixed long ago. A few questions for you, so we can better understand what’s going on:
-ObjCto theOTHER_LDFLAGSbuild setting?