-
Notifications
You must be signed in to change notification settings - Fork 697
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not build module 'Mapbox' (MGLAccountManager.h file not found) #270
Comments
Same Error |
Same error on 3.2.1. When I search for
there is a Mapbox.framework nested inside Mapbox.framework. Is that right? |
Hmmm that looks like. @ferndopolis something is up with your install process, when I run find . -type f -name "MGLAccountManager.h"
./node_modules/react-native-mapbox-gl/ios/Mapbox.framework/Headers/MGLAccountManager.h Unsure how it would put the framework inside of the framework... @munkius are you upgrading from a previous version? |
@bsudekum It's a clean install, what makes you think that? |
@munkius just wondering. An older version could have been messing with the build. |
Tried it a bunch of times with a fres workspace to be sure not to disturb you guys with a nonsense issue :) Hope this can work out, I'm really curious about getting Mapbox to work within react native. |
@munkius Here is a barebones setup: https://cloudup.com/c9J25rX9Jla Can you download it, unzip it and try and run it? Maybe see if anything is different. |
That builds just fine :) Plus, when I copy the |
Getting the same issue in my project. |
Got it to work, did Thanks! |
I have the same issue. It is very weird, i see react-native-mapbox-gl/ios/Mapbox.framework without MGLAccountManager.h and react-native-mapbox-gl/ios/Mapbox.framework/Mapbox.framework with that file... |
same issue here. It was working last week and it suddently breaks after I reinstall npm packages with |
@samuelngs @aksonov the install process changed in 3.2.0. Have you gone through the new install process? |
@bsudekum I did all these steps several times without success. |
setting target to 8.0 or 9.0 also didn't solve the problem. Why there are nested Mapbox.framework files? |
@aksonov I'm not seeing nested frameworks when doing a fresh install. Here is what my completed install process looks like: https://cloudup.com/c9J25rX9Jla |
@bsudekum I upgraded the mapboxgl to v3.2.0 last week and it worked fine before, yeah and I had gone through the new install process (the one with mapbox.framework). |
I'm confused as to how these folders would look any different. |
@bsudekum It's really important that anyone doing this selects Still not sure how to get 3.2.3 to work, but I give up for now. |
@bsudekum It uses 3.2.2, not 3.2.3. After i've removed node_modules and run npm install, i've got exactly the same issue.... |
I was running into this issue as well. Mapbox 3.2.3 I was seeing the same issue as the others with Mapbox.framework containing a Mapbox.framework. I was able to solve the issue and get it to build by moving the nested Mapbox.framework to another location and then deleting the Mapbox.framework that was left. I then moved the nested Mapbox.framework back into the ios directory within my node_modules/react-native-mapbox-gl and the build was able to succeed. Hope this helps. Let me know I need to clarify anything else. |
I also get this problem! Did anybody solve that? |
This has now been fixed and released in |
I followed the steps in the installation guide file, but I get the error the Mapbox framework could not be found. It get this after adding
libRCTMapboxGL.a
to the sectionLink Binaries With Libraries
. Before doing this I can successfully build my project.I'm working with react-native-mapbox-gl version 3.2.1.
The text was updated successfully, but these errors were encountered: