-
Notifications
You must be signed in to change notification settings - Fork 1.3k
mapbox.png missing on upgrade to 3.0.1 with CocoaPods #3281
Comments
@adamszeptycki This seems like a CocoaPods issue. Nuking your project's CocoaPods install is always good place to start: If the issue persists, post your |
Reinstalling pods, cleaning simulator and derived data helped. |
It happened again. |
Is there anything unusual in your |
It looks like this:
I also tried without that last part with bitcode, with exactly the same results. |
Also, make sure you're using the latest version of CocoaPods (v0.39): > pod --version
0.39.0
> [sudo] gem install cocoapods
... |
I have done fresh install with 3.0.1 (without that bitcode configuration). It's weird since it works without any problems with version 2.1.2 |
I’ve got the same problem with the missing mapbox.png resource. I had been following the First Steps tutorial on the Mapbox website. Here’s my Podfile:
Running CocoaPods 0.39.0 |
I installed this without cocoa pods by following the tutorial installation instructions, and same issue. I downgraded to 2.1.2 using the same installation steps, working as expected. |
@friedbunny Any updates on that? |
@adamszeptycki I haven't been able to reproduce this locally, it'd be quite helpful if we had a small project that reliably crashed. #3034 may be the culprit, but I don't see anything glaring there. |
Just in case and of this helps: I'm using El Capitan OS with Xcode 7.2 and react native 0.17.0, installing with npm 2.14.14 and manually setting up the config as dictated by the guide. It breaks (with error: 'The resource named “mapbox.png” could not be found in the Mapbox resource bundle) when I include mixins: [Mapbox.Mixin] in my react class. I checked my installation steps rigorously for errors. |
@friedbunny I've been running into the same issue without using pods - I created a small working example of this here. |
Referring to my earlier post, if Mapbox.bundle is contained inside the Mapbox directory the app crashes due to "Terminating app due to uncaught exception 'Resource not found', reason: 'The resource named “mapbox.png” could not be found in the Mapbox resource bundle.'" If you just drag and drop Mapbox.bundle outside of the Mapbox directory the app runs fine. Also, you'll have to add your MGLMapboxAccessToken in the plist to test the project. - Hope this helps. |
I'm having this issue having followed the exact "Static framework" installation protocol (https://github.com/mapbox/mapbox-gl-native/blob/master/platform/ios/INSTALL.md). I have the exact same error message: |
We made resource loading more robust as part of #3183, which also introduced a dynamic framework. Please try uninstalling the SDK and installing this prerelease instead (for CocoaPods, use this podspec). Archives ending in “-dynamic.zip” contain only the dynamic framework; the others contain both dynamic and static frameworks. We’re pretty certain the dynamic framework doesn’t suffer from this issue. If you run into this issue with the prerelease static framework, please confirm that Mapbox.framework is listed in your application target’s Embed Frameworks build phase rather than the Copy Bundle Resources build phase. |
Make that v3.1.0-pre.2 (podspec). |
I did update from version 2.2.1 to 3.0.1.
And I'm getting a crash on start with this Exception:
Any ideas how to approach that issue?
Framework was installed using cocoa pods.
The text was updated successfully, but these errors were encountered: