-
Notifications
You must be signed in to change notification settings - Fork 1.3k
MapboxGL on XCode Version 7.0 beta #1870
Comments
Hi @danielgomezrico, this is a duplicate of #1849, which is caused by the new version of CocoaPods. Please add |
@1ec5 But I have it... |
In that case, @danielgomezrico, you should try the voodoo dance of ⌘⇧K (CMD+SHIFT+K) and ⌘⌥⇧K (CMD+OPTION+SHIFT+K) to clean everything out. |
You may also need to mark Pods.framework as optional instead of required in the General tab. |
Oh, sorry, I had the workaround slightly wrong. Please see this comment for the real workaround: #1862 (comment). |
I have the same problem: Undefined symbols for architecture x86_64: Xcode 6.4 Now what should I do? |
@wangqianjun, what version of CocoaPods and what version of MapboxGL do you have installed? |
Same problem using Xcode 6.4 and CocoaPods 0.38.2. I checked all of the linker flags, and -ObjC is there. Simply have |
It sounds like CocoaPods has failed to set up the workspace correctly, but the same version of CocoaPods works for me. @wangqianjun and @AndrewBarba, please try installing Mapbox GL into a brand-new project. If it still exibits this issue, please ZIP up the project (podspec and all) and send it to mobile@mapbox.com, referencing this GitHub issue. Thank you! |
Before I actually do that, you guys have |
@AndrewBarba, using a dynamic framework is required if you use Swift, as the others on this page appear to be doing, because Swift code cannot link against static libraries. It is possible to run an application linked against frameworks on iOS 7; Xcode issues a warning, but that appears to be a bug in Xcode. Are you getting exactly the same linker error as the original reporter, or something different? |
Sorry to be completely spitballing here (DF reader, really want to use this) but your podspec is using |
I stand corrected. But CocoaPods/swift#9 (comment) is pretty much spot on. In fact, the main benefit we’ve gotten from CocoaPods has been its ability to wrap the static library in a dynamic framework (something we’ve been planning to roll at home for #828). However, if you’re running into the validation issue because you’re backwards-deploying to iOS 7.0, you may want to consider the manual installation route, unless you’re using CocoaPods for any other packages.
Looks like our use of |
We're using quite a few
And
|
I´m one of those horrible compile error with the simple example on https://www.mapbox.com/mapbox-gl-ios/examples/. :(
My pod file:
My view controller:
Error:
Is it a bug on Xcode or is mine?
The text was updated successfully, but these errors were encountered: