You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Error building after installing via CocoaPods — Include of non-modular header inside framework module 'Mapbox' #3300
Pretty sure this is CocoaPods/CocoaPods#4420, which is fixed in CocoaPods master. It’s tripping up because we now include a module map that’s redundant with the one CocoaPods creates for us.
I haven’t tried it out yet, but as several commenters in CocoaPods/CocoaPods#4420 point out, you should be able to use something like this to “fix” the Mapbox iOS SDK headers for now:
Fixed in #3183. If you still run into this error, make sure your bridging header isn’t importing an individual header but rather the umbrella header (Mapbox/Mapbox.h) or module (Mapbox).
Actually, I still get this error in at least one CocoaPods project written in Swift after upgrading to 3.1.0-pre.1 (which is out now, by the way!). The workaround is to add #import <Mapbox/Mapbox.h> to a bridging header. You may need to clear your module cache before rebuilding.
changed the title [-][iOS][3.0.1] Cocoapods framework not useable[/-][+]Error building after installing via CocoaPods — Include of non-modular header inside framework module 'Mapbox'[/+]on Jan 23, 2016
Activity
1ec5 commentedon Dec 15, 2015
Pretty sure this is CocoaPods/CocoaPods#4420, which is fixed in CocoaPods master. It’s tripping up because we now include a module map that’s redundant with the one CocoaPods creates for us.
/cc @incanus
lucacorti commentedon Dec 15, 2015
Is there any workaround to make it work right now? The Pod is unusable in its current state and the Cocoapods fix is not released yet.
lucacorti commentedon Dec 16, 2015
I tried importing the header in the the Objective-C bridging header. Stile gettoni the dame error though.
1ec5 commentedon Dec 21, 2015
I haven’t tried it out yet, but as several commenters in CocoaPods/CocoaPods#4420 point out, you should be able to use something like this to “fix” the Mapbox iOS SDK headers for now:
/cc @friedbunny
friedbunny commentedon Dec 21, 2015
That
post_installbit does appear to work, got around theInclude of non-modular header inside framework module 'Mapbox'build error.1ec5 commentedon Jan 23, 2016
Fixed in #3183. If you still run into this error, make sure your bridging header isn’t importing an individual header but rather the umbrella header (
Mapbox/Mapbox.h) or module (Mapbox).1ec5 commentedon Jan 23, 2016
Actually, I still get this error in at least one CocoaPods project written in Swift after upgrading to 3.1.0-pre.1 (which is out now, by the way!). The workaround is to add
#import <Mapbox/Mapbox.h>to a bridging header. You may need to clear your module cache before rebuilding.[-][iOS][3.0.1] Cocoapods framework not useable[/-][+]Error building after installing via CocoaPods — Include of non-modular header inside framework module 'Mapbox'[/+][ios] Quoted umbrella header imports
1ec5 commentedon Jan 27, 2016
v3.1.0-pre.2 (podspec) is out with the fix for this issue. Please let us know if you still see the errors. Thanks!