- Notifications
You must be signed in to change notification settings - Fork 92
Fix the issue that could not compile SDWebImageWebPCoder when using CocoaPods with use_modular_header! #15
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
Conversation
@0x0c What Xcode version with you computer? I test in Xcode 10.2.1, And it's OK. |
@kinarob I'm using Xcode 10.2.1 and CocoaPods 1.6.3. First, I apologize my wrong report; I found another reason for the issue that I cannot compile my project when using By the way, I got errors when using I edit an example project of this repo and my changes has no effect for build when using |
From the error, Can you upload a demo? Thus, We can find out the issue from your usage. Thanks! |
@kinarob OK, please wait a moment. |
@kinarob Hi, I can reproduce this compile error. Could you take a look at this demo repository?: |
@ledyba OK, I'll check this immediately. |
@kinarob Thank you! |
@ledyba This This will break the user who still using the Static Library + Headers. Instead, I suggest to just change to using |
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change this line into #import <SDWebImage/SDWebImage.h>
to works for Static Library user.
*/ | ||
| ||
#import <SDWebImage/SDWebImageCompat.h> | ||
@import SDWebImage; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same
Seems a bug because of CocoaPods: CocoaPods/CocoaPods#7598 (comment) Even I change this into modular import, I found that all the private headers are marked as public when using |
@ledyba Seems you're too busy to reply. To solve the users who still face the problem. I'll merge this right now and do changes. Thanks for your contribution ! |
Released v0.2.2: https://github.com/SDWebImage/SDWebImageWebPCoder/releases/tag/0.2.2 |
@dreampiggy Hi, I’m working with @ledyba at same company and this issue is caused in our proprietary project so I apologize that could not share detail, and thank to merge our PR. This repo is able to compile: https://github.com/0x0c/SDWebImageWebPCoderTest Difference is only using |
@0x0c OK...It can now suceesfuly build. My review of your PR is about to change But if you disable clang module (There are a little project who still use as this, they have their reasons), the See the screenshot. Note: The warning is CocoaPods's bug, need them to fix via CocoaPods 1.8.0 or later. |
The bug of CocoaPods issue change to: CocoaPods/CocoaPods#8879 |
Hi, I added
@import UIKit;
atUIImage+WebP.h
to fix the issue that I mentioned at this PR's title.The issue can be reproduced using a
Podfile
withuse_modular_headers!
, to link this library as a static library, as follows:and