Skip to content
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 iOS import statement #64

Closed
ThatoXDev opened this issue Apr 10, 2019 · 2 comments
Closed

Error iOS import statement #64

ThatoXDev opened this issue Apr 10, 2019 · 2 comments

Comments

@ThatoXDev
Copy link

Hi I have the error:

=== BUILD TARGET mapbox_gl OF PROJECT Pods WITH CONFIGURATION Debug ===
/Users/macbookpro/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/mapbox_gl-0.0.3/ios/Classes/MapboxMapsPlugin.m:1:9: fatal error: 'mapbox_gl/mapbox_gl-Swift.h' file not found
#import <mapbox_gl/mapbox_gl-Swift.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

I am trying to run the app on the simulator and iPhone 5s I get this type of error, anyone know how to fix this?

Thank you in advance

@ayvazj
Copy link
Contributor

ayvazj commented Apr 14, 2019

I had the same problem and was able to work around it by removing the mapbox_gl/ portion of the import statement.

#import <mapbox_gl-Swift.h>

After fixing that I encountered more compiler issues. I was able to resolve them by opening the Runner.xcworkspace and applying the recommend fixes. I also had to create a dummy .swift file as mentioned here https://stackoverflow.com/questions/50096025/it-gives-errors-when-using-swift-static-library-with-objective-c-project/50495316#50495316

I also updated the Mapbox-iOS-SDK to version 4.9

Using Xcode 10.2 w swift 5.0
Managed to get everything working

@ThatoXDev
Copy link
Author

ThatoXDev commented Apr 14, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants