-
Notifications
You must be signed in to change notification settings - Fork 210
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
'MapboxMobileEvents/MapboxMobileEvents.h' file not found #644
Comments
I've run into the same problem, for me the generated xcode projects are missing a couple of items. First open the XCode project and go to the Build Settings tab and search for Header Search Paths, double click to the row and press the + button and add a line and paste this into it I also had to manually link the libz library to the project, that can be done by going to the Build Phases tab and expand Link Binary With Libraries. Click the + button and search for libz.tbd and press Add |
Amazing!!! It worked! Thank you so much I am super excited.
First I tried manually linking the libz with no result.
When I updated the Header search path it worked. I can not say if it took both or only the new Path but I am so thankful to be able to get to work again.
|
Still same error for me... Replaced Header Search Paths, add libz.tbd, build without symlink, and still not working. |
Is it possible to automate this on the next release and add as an enhancement? |
It's $(SRCROOT)/Libraries/Mapbox/Core/Plugins/iOS/MapboxMobileEvents/include/MapboxMobileEvents but this still doesn't help |
Added: I also manually added Still nothing....any one with other solutions to this error? |
It's important to note that the header search files appy to the |
Mange to get in work in Unity 2019.3.15f1 The problem is that TargetGuidByName() has been deprecated so you need to go and replace it with GetUnityFrameworkTargetGuid() in order to fix 'MapboxMobileEvents.h' file not found in xcode. There are two scripts that you need to change: 1- Mapbox_iOS_build 2- UnityARBuildPostprocessor |
I don't have UnityARKitPlugin/Plugins/iOS/UnityARKit/Editor/UnityARBuildPostprocessor but I do have ARKit XR Plugin and found UnityARBuildPostprocessor. Should I edit that file? Line 80 and 81 are comments so I'm not sure what I should be replacing. |
Replace them with what I have written, |
Updating the deprecated TargetGuidByName to GetUnityFrameworkTargetGuid fixed error in Unity Build. |
September 2021: error still exists. Still, one has to change to "GetUnityFrameworkTargetGuid()" and still the MapboxMobileEvents.h cannot be found. Following the advice by @rod-m to remove all folder paths from the imports helps! But this cannot be the final word. MapBox for Unity needs an overhaul! |
Thanks for this solution, doing the option 1 in Unity 2022.3.3f1 also has resolved this library not found issue. |
Update in 2023: Using XCode 15 Beta and MacOS Sonoma with iOS 17, Unity version 2021.3.29f1 on MacOS M1, I still had same errors but downloading AR package from Unity and also doing the first step that @Nima-Jamalian provided it compiles and installs on my device. thanks |
terrible!!! |
2024 now. I think it is dead |
Note: If this is a bug or support ticket, please provide the following information:
I have researched this problem and tried every documented solution I could find.
iPad only, iPhone only, any device.
Manually add framework and embedded Binary
add new search paths
Check that symlink is not checked
Opened new accounts for Xcode, Mapbox, and Unity
I add directly to the assets, set build settings for iOS then it builds to Xcode and produces the error.
I am happy to show you settings but over the last few days I have changed every one of them I can find with no luck.
The text was updated successfully, but these errors were encountered: