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

Getting errors while running this code in Xcode8 #14

Closed
ghost opened this issue Mar 31, 2017 · 5 comments
Closed

Getting errors while running this code in Xcode8 #14

ghost opened this issue Mar 31, 2017 · 5 comments

Comments

@ghost
Copy link

ghost commented Mar 31, 2017

Hi

I have installed Pods and got the following message after

Generating Pods project
Integrating client project
Sending stats
Pod installation complete! There are 32 dependencies from the Podfile and 42 total pods installed.

open OpenShop.xcworkspace
But i am getting these errors while running this project

diff: /../Podfile.lock: No such file or directory
diff: /Manifest.lock: No such file or directory

/Users/harry/Downloads/openshop.io-ios-master/Pods/IDMPhotoBrowser/Classes/IDMPhoto.m:140:22: No visible @interface for 'SDWebImageManager' declares the selector 'downloadImageWithURL:options:progress:completed:'

Please let me know if i am doing something wrong ?

Thanks

@xuanzi23
Copy link

@Mobiappsolutionz I meet this problem also. wonder why

@BluePick
Copy link

BluePick commented May 4, 2017

Change this block

            SDWebImageManager *manager = [SDWebImageManager sharedManager];
            [manager loadImageWithURL:_photoURL options:SDWebImageRetryFailed progress:^(NSInteger receivedSize, NSInteger expectedSize, NSURL * _Nullable targetURL) {
                CGFloat progress = ((CGFloat)receivedSize)/((CGFloat)expectedSize);
                if (self.progressUpdateBlock) {
                    self.progressUpdateBlock(progress);
                }
            } completed:^(UIImage * _Nullable image, NSData * _Nullable data, NSError * _Nullable error, SDImageCacheType cacheType, BOOL finished, NSURL * _Nullable imageURL) {
                if (image) {
                    self.underlyingImage = image;
                    [self performSelectorOnMainThread:@selector(imageLoadingComplete) withObject:nil waitUntilDone:NO];
                }
            }];

@abhiklodh
Copy link

Great @BluePick , works now!

@Saladaljanabi
Copy link

@abhiklodh where did you put this block can you tell me

@Skornos
Copy link
Contributor

Skornos commented Aug 5, 2018

IDMPhotoBrowser has a dependency on SDWebImage which was automatically installed with the version 4.x while the application expects the version 3.x.

This issue can be solved by putting this line in the Podfile

pod 'SDWebImage', '~> 3.8.0'

Sorry for the inconvenience, the latest commits are fixing the issue

@Skornos Skornos closed this as completed Aug 5, 2018
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

5 participants