-
Notifications
You must be signed in to change notification settings - Fork 38
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
Static framework should define module #85
Conversation
Thanks @frederoni, shouldn't |
@rclee correct. As it stands now, it would only be fixed when integrating with Carthage. |
471f313
to
79d29f1
Compare
So this pull request doesn't fix the issue when importing the library with Cocoapods? |
@paul019 I amended a change and force pushed a commit ( Please try |
I am very sorry, but I can try this out only tomorrow. In the end I don't want to install the pod |
@paul019 yes, this PR should address the issue you described in mapbox/mapbox-navigation-ios#1791 MapboxNavigation depends on MapboxMobileEvents. By specifying a transient dependency, we'll make sure that this fix works for you, then we can make a new release and you can remove the transient dependency. |
@frederoni I tried out your code and all pods were installed successfully! Thank you very much! But how can I use the working version of |
@paul019 Just keep this line: pod 'MapboxMobileEvents', :git => 'https://github.com/mapbox/mapbox-events-ios.git', :commit => "79d29f1df5a9187481f5c9ac8fa13430d1f04139" in your Podfile. This is called a transient dependency because you are not following the dependency tree and resolving the MapboxMobileEvents version that MapboxNavigation tries to pull in. You can delete that line when we release a new version of MapboxMobileEvents and MapboxNavigation. |
Now I've a Podfile like this:
I can successfully run |
@paul019 what version of Xcode and Swift are you using? It looks like you're pre-4.0. The last release of MapboxNavigation compatible with Swift 3.2 was v0.10.1. |
(It’s called a “transitive dependency”, by the way.) |
I've now updated Swift to version 4.0 and get the errors anyway... Do you have any idea, how to solve this? Do I have to update to an even newer version? |
@paul019 You could try a higher Swift version. According to this issue Xcode 9.4 (Swift |
Hi! I've two remaining issues:
How can I solve those two problems? Thank you very much for your great work and help! |
@frederoni @rclee @1ec5 After trying various workarounds and spending hours of bug fixing, I've still the two above mentioned issues. Especially issue 2 is very annoying and prohibits me to work at my project. It would help me a lot, when you could give me an advice. Note: |
I've now found a solution for my issue: By commenting out the line of code, that produces the error (see Xcode screenshot), I can solve the issues without creating new errors. I now that this sounds stupid, but is this line of code necessary? It appears to me, that its not important and that its import is not needed in the file. |
@frederoni @rclee @1ec5 Can this hacky fix work for me or does it change any functionality of the library? If yes, can you please provide another fix/workaround for my issue? I can't find anything regarding it on the internet... |
@frederoni @rclee @1ec5 An answer would be very appreciated. Or should I open a new issue for this? |
@paul019 please open a new ticket in MapboxDirections.swift or mapbox-navigation-ios. |
@frederoni I've now opened a new ticket in mapbox-navigation-ios: |
Fixes #73
The dynamic framework already defines a module, the static doesn't.
cc @rclee @1ec5