-
Notifications
You must be signed in to change notification settings - Fork 601
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
Fix the umbrella header #127
Comments
This may be related to what I'm seeing in Xcode 7.1. In OHHTTPStubs.h, line 32, I get an error: pod 'OHHTTPStubs/Core'
pod 'OHHTTPStubs/NSURLSession'
pod 'OHHTTPStubs/JSON'
pod 'OHHTTPStubs/OHPathHelpers'
pod 'OHHTTPStubs/Swift' |
We're seeing this error as well. |
I tried settting "Allow Non-modular includes in Framework Modules" in Build Settings to YES, but no luck, anyone has another workaround? |
I was able to fix this by manually changing the imports in
But this isn't really a long term solution |
Yeah, even if that worked, that would be a workaround to cheat the compiler, wouldn't solve the core issue @keith Ah interesting. I was wondering if it would be necessary to create a custom umbrella header and a custom modulemap to use it, but if this fix of yours is enough I'd say let's do that instead! |
I'm not sure how that affects users not pulling this in via CocoaPods though. |
I'm currently downloading Xcode 7.1 (I have seen this issue with Xcode 7, but it was not deterministic and sometimes worked, sometimes failed, so hopefully Xcode 7.1 will make it fail every time so I can be sure to know whether the patch fix it or not. Will then indeed need to try a lot of contexts / configurations then, especially how it affects people not using CocoaPods, or using some subspecs but not all, etc. Will have to double-check with that trick using Will keep you posted, but interested if you guys could then test this in multiple different configurations afterwards. |
@keith did you only do these changes and nothing else? -#import <OHHTTPStubs/Compatibility.h>
-#import <OHHTTPStubs/OHHTTPStubsResponse.h>
+#import "Compatibility.h"
+#import "OHHTTPStubsResponse.h" Because if I'm doing that, and then try to build the framework directly from Xcode in the |
Yep that's all I changed. |
Mmmmh strange it doesn't work here then. Could you try with the fix I started in |
Yep, it built fine for me! |
Fixed my build as well. |
Cool! Will do a release probably in the week-end (too busy today). Thx for the feedback 🎉 |
The fix branch is working great in my testing on several projects, too. |
Version |
Can still reproduce this issue on XCode 7.2 / CocoaPods 0.39.0 when doing a fresh
I can workaround it, however by commenting out the line |
@madoke That's a known bug of CP 0.39 i believe. |
Yeah just confirmed. Should be fixed in latest betas of CP though, so I encourage you to test the latest CocoaPods 1.0.0 beta. |
It seems to be broken (see #121)
Probably because:
OHHTTPStubs.h
, which should be my umbrella header, is also the header for one of the classes in the framework (actually the main one, but not the only one), so that's not really a header dedicated for umbrella importsMaybe one possible solution would be to start by having a dedicated umbrella header, even if it's not called
OHHTTPStubs.h
but ratherOHHTTPStubs-Umbrella.h
for example (I think we can override the default umbrella header in the build settings).The text was updated successfully, but these errors were encountered: