-
Notifications
You must be signed in to change notification settings - Fork 93
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
Error 'MapboxDirections/MapboxDirections.h' file not found
after installing MapboxNavigation
#318
Comments
@frederoni Do you have an idea how to solve this issues? |
@frederoni An answer would be very appreciated. |
1 similar comment
@frederoni An answer would be very appreciated. |
Sorry about the delay. What version of Xcode and what version of CocoaPods are you using? Do you see similar issues with newer versions of the Navigation SDK? |
@frederoni I tried out both Xcode 9.4 and Xcode 10. But I had the same issue with both versions. To the Navigation SDK: I tried out version |
@paul019 Can you share your |
Here's my Podfile:
|
@frederoni Could you find a problem with my Podfile? |
Add Feel free to re-open if the issue persists. |
@frederoni Thank you for the tip. Unfortunately, it doesn't work for me, because I am installing other Pods that throw an error when using PS: I cannot re-open the issue because you closed it (see https://stackoverflow.com/questions/21333654/how-to-re-open-an-issue-in-github). I hope you see this message anyway. |
@frederoni So, do you have an idea, how I could install |
Specifying @1ec5 static libraries wrapped in a framework is the default in CocoaPods (as of 1.5?), supported on Xcode >= 9 and iOS >= 9. Any idea why MapboxDirections.swift’s umbrella header would be missing unless |
@frederoni @1ec5 Now I've added
However, I still get the same error when running the project in Xcode after the |
@frederoni An answer would be very appreciated. |
We don't have a solution for this issue yet. I will transfer this issue to MapboxDirections.swift and try to address it as soon as possible. |
We are also running into this issue on our project. use_frameworks! causes other pods to fail. We are using MapboxNavigation v0.26.0 and Cocoapods v1.5.3. |
@frederoni When can we expect a solution to this issue? |
It's not a long-term solution but I was able to work around this issue by renaming Podfilesource 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
target 'my-app' do
pod 'MapboxCoreNavigation', :path => '../mapbox-navigation-ios'
pod 'MapboxNavigation', :path => '../mapbox-navigation-ios'
pod 'MapboxMobileEvents', :modular_headers => true
pod 'MapboxDirections', :path => '../MapboxDirections.swift', :modular_headers => true
end along with renaming I know there was an issue with |
@frederoni Thank you for your answer! I'm very sorry for not answering for such a long time. I've now tried out your workaround, but unfortunately the
So, what's the problem here? |
The Podfile in #318 (comment) assumes you have a clone of the dependencies’ repositories beside the current project directory. |
It’s unusual that MapboxDirections-Swift.h tries to import MapboxDirections.h. By contrast, the generated interface for MapboxSpeech, MapboxSpeech.h, lacks this import statement. #import <MapboxDirections/MapboxDirections.h> There should be no reason for a library’s generated interface header to import the same library’s umbrella header. I think this may come down to the fact that MapboxDirections.swift’s pod name ( |
I cannot use frameworks because of other dependencies. And as per #318 (comment) I renamed Redefinition of module 'MapboxDirections' |
As of #400 in v1.0.0-alpha.1, the pod’s name matches the module name, so the umbrella header should no longer be broken. What’s more, this library no longer supports Objective-C, so the umbrella header likely has even less relevance. Please check again whether the issue persists in v1.0.0-alpha.1. |
Hey there, I have some issues since iOS 13.3.1 with |
That’s mapbox/mapbox-gl-native-ios#157, unrelated to the problem that was tracked in this issue. |
This library no longer supports Objective-C code directly. See #381 for background and a workaround if your application is still written in Objective-C. |
My bad, I thought the original issue was about importing the umbrella header manually, as one would in Objective-C. Still, I think the root cause mentioned in #318 (comment) is resolved as of v1.0.0-alpha.1, since we’ve removed “.swift” from the pod’s name. |
Hi there,
I've installed MapboxNavigation iOS via CocoaPods without experiencing any issues. But after compiling the project in Xcode I got two errors produced by the library. One error is
'MapboxDirections/MapboxDirections.h' file not found
:I tried to just comment out the line of code that produced the error and the whole project indeed compiled successfully. As I can evaluate the import that produces the error isn't needed in the file at all. Is this true?
After doing this hacky bugfix, I started writing some lines of Mapbox code and got another error:
The code:
The resulting error:
Command failed due to signal: Abort trap: 6
I've no clue what this error means and think that it may have something to do with my hacky bugfix. Is this possible?
Mapbox Navigation SDK version: 0.22.0
The text was updated successfully, but these errors were encountered: