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

SDWebImage not working with iOS 8 #786

Closed
ghost opened this issue Jun 30, 2014 · 40 comments
Closed

SDWebImage not working with iOS 8 #786

ghost opened this issue Jun 30, 2014 · 40 comments
Milestone

Comments

@ghost
Copy link

ghost commented Jun 30, 2014

'm was developing an app using iOS7 SDK, when I moved to iOS8 SDWebImage stop working properly. If I try this:

[imgViewTemp setImageWithURL:urlPhoto completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType)
{
NSlog(@"done");
}];
the completion block simply doesn't get called. Do you have any imminent plan of supporting iOS8?

@bpoplauschi
Copy link
Member

hi there. Of course we want to support iOS 8. Could you please try the demo app from our project on iOS 8 and see if the completion is called? I tried it myself and it works fine for me.

@bpoplauschi bpoplauschi added this to the 3.7.0 milestone Jun 30, 2014
@ghost
Copy link
Author

ghost commented Jun 30, 2014

Great. Could you please give me the link for downloading it? I'm currently using cocoaPods so I think I will directly import the library in my project

@bpoplauschi
Copy link
Member

to get the entire repository, run git clone https://github.com/rs/SDWebImage.git --recursive. We need the recursive part because there is a git submodule libwebp that otherwise won't be retrieved.

@ghost
Copy link
Author

ghost commented Jun 30, 2014

Cool. I will let you know as soon as I finish the test!

@ghost
Copy link
Author

ghost commented Jun 30, 2014

It works! I've removed the SDWebImage line from my Podfile and imported directly the library from the folder downloaded using your git commands. Everything went back to normal. Thanks a lot!

@ghost ghost closed this as completed Jun 30, 2014
@bpoplauschi
Copy link
Member

You can still use CocoaPods, as that is the recommended way to include with SDWebImage. Until we release a new version (3.7.0), you can use pod 'SDWebImage', :head

@ghost
Copy link
Author

ghost commented Jul 1, 2014

I will. Thanks again!

2014-06-30 11:25 GMT+01:00 Bogdan Poplauschi notifications@github.com:

You can still use CocoaPods, as that is the recommended way to include
with SDWebImage. Until we release a new version (3.7.0), you can use pod
'SDWebImage', :head


Reply to this email directly or view it on GitHub
#786 (comment).

@obelix74
Copy link

I'm on cocoa pods 3.7.1 (and I use RubyMotion), this isn't working, the callback isn't being called :(.

@skriyaz7
Copy link

i'm getting unSupported url error for alAsset urls in version 3.7.1 ,

SDWebImageManager * theManager = [SDWebImageManager sharedManager];

[theManager downloadWithURL:asset.defaultRepresentation.url options:0 progress:nil completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, BOOL finished) {
if (image) {
myImageview.image = image;
}
else
{
myImageview.image = [UIImage imageNamed:@"placeholder.png"];
}
}];

@mythodeia
Copy link
Contributor

@skriyaz7
This library is not intended for use with ALAsset urls. You can use this pull request #906 that supports ALAsset urls and the new PHAsset framework.

@kuberan
Copy link

kuberan commented Nov 23, 2014

screenshot
I am trying to build an iOS project which used to work on iOS 7. Now on iOS 8 I get this error when I try to build on Xcode. Will I be able to fix this if I just upgrade to the latest SDWebImage ?

@jyothireddy58
Copy link

webP+decode.h filenot found is coming

On Sun, Nov 23, 2014 at 10:25 PM, kuberan notifications@github.com wrote:

[image: screenshot]
https://cloud.githubusercontent.com/assets/1269336/5158326/40a68882-735f-11e4-89df-a651f2239880.jpg
I am trying to build an iOS project which used to work on iOS 7. Now on
iOS 8 I get this error when I try to build on Xcode. Will I be able to fix
this if I just upgrade to the latest SDWebImage ?


Reply to this email directly or view it on GitHub
#786 (comment).

@jyothireddy58
Copy link

any solution for this and tableview fast scrolling the app is crashing

On Mon, Nov 24, 2014 at 9:44 AM, Reddy jyothi reddyjyothi44@gmail.com
wrote:

webP+decode.h filenot found is coming

On Sun, Nov 23, 2014 at 10:25 PM, kuberan notifications@github.com
wrote:

[image: screenshot]
https://cloud.githubusercontent.com/assets/1269336/5158326/40a68882-735f-11e4-89df-a651f2239880.jpg
I am trying to build an iOS project which used to work on iOS 7. Now on
iOS 8 I get this error when I try to build on Xcode. Will I be able to fix
this if I just upgrade to the latest SDWebImage ?


Reply to this email directly or view it on GitHub
#786 (comment).

@bpoplauschi
Copy link
Member

@jyothireddy58 you should definitely update to the latest version of SDWebImage. Make sure you use CocoaPods or git clone --recursive git@github.com:rs/SDWebImage.git so you also get the webp package that is available on a separate repository.

@jyothireddy58
Copy link

Webp library is not coming onlt sdwebimage library coming
On 24 Nov 2014 14:53, "Bogdan Poplauschi" notifications@github.com wrote:

@jyothireddy58 https://github.com/jyothireddy58 you should definitely
update to the latest version of SDWebImage. Make sure you use CocoaPods or git
clone --recursive git@github.com:rs/SDWebImage.git so you also get the
webp package that is available on a separate repository.


Reply to this email directly or view it on GitHub
#786 (comment).

@bpoplauschi
Copy link
Member

How did you install SDWebImage?

@jyothireddy58
Copy link

Im using xcode 6.in this sdwebimage webp folder is not ther and one more
thing is webp folder is notthere
On 24 Nov 2014 15:08, "Reddy jyothi" reddyjyothi44@gmail.com wrote:

Webp library is not coming onlt sdwebimage library coming
On 24 Nov 2014 14:53, "Bogdan Poplauschi" notifications@github.com
wrote:

@jyothireddy58 https://github.com/jyothireddy58 you should definitely
update to the latest version of SDWebImage. Make sure you use CocoaPods or git
clone --recursive git@github.com:rs/SDWebImage.git so you also get the
webp package that is available on a separate repository.


Reply to this email directly or view it on GitHub
#786 (comment).

@jyothireddy58
Copy link

From latest sdwebimage github code im sdwebimage file drag and drob in to
my project.after that webp+decode.h file not found
On 24 Nov 2014 15:13, "Bogdan Poplauschi" notifications@github.com wrote:

How did you install SDWebImage?


Reply to this email directly or view it on GitHub
#786 (comment).

@bpoplauschi
Copy link
Member

You have 2 ways to properly install SDWebImage, as I said before. You either use CocoaPods or do a recursive clone using git clone --recursive git@github.com:rs/SDWebImage.git. Your copy of SDWebImage does not include the libwebp dependency. Please remove it and install as I suggested.

@jyothireddy58
Copy link

Thanku how we will use cocoaods can u explain please
On 24 Nov 2014 16:47, "Bogdan Poplauschi" notifications@github.com wrote:

You have 2 ways to properly install SDWebImage, as I said before. You
either use CocoaPods or do a recursive clone using git clone --recursive
git@github.com:rs/SDWebImage.git. Your copy of SDWebImage does not
include the libwebp dependency. Please remove it and install as I suggested.


Reply to this email directly or view it on GitHub
#786 (comment).

@bpoplauschi
Copy link
Member

You can start with this http://guides.cocoapods.org/using/getting-started.html

@jyothireddy58
Copy link

K thanku.
On 24 Nov 2014 17:27, "Bogdan Poplauschi" notifications@github.com wrote:

You can start with this
http://guides.cocoapods.org/using/getting-started.html


Reply to this email directly or view it on GitHub
#786 (comment).

@jyothireddy58
Copy link

How we will get webp folder
On 24 Nov 2014 17:35, "Reddy jyothi" reddyjyothi44@gmail.com wrote:

K thanku.
On 24 Nov 2014 17:27, "Bogdan Poplauschi" notifications@github.com
wrote:

You can start with this
http://guides.cocoapods.org/using/getting-started.html


Reply to this email directly or view it on GitHub
#786 (comment).

@bpoplauschi
Copy link
Member

CocoaPods takes care of that.

@jyothireddy58
Copy link

Thanku
On 24 Nov 2014 20:06, "Bogdan Poplauschi" notifications@github.com wrote:

CocoaPods takes care of that.


Reply to this email directly or view it on GitHub
#786 (comment).

@jyothireddy58
Copy link

tableview fast Scrolling CGImage ImagewithObjectAtindex0 is coming and the
App is crashing.can u tell me the reason

On Mon, Nov 24, 2014 at 8:17 PM, Reddy jyothi reddyjyothi44@gmail.com
wrote:

Thanku
On 24 Nov 2014 20:06, "Bogdan Poplauschi" notifications@github.com
wrote:

CocoaPods takes care of that.


Reply to this email directly or view it on GitHub
#786 (comment).

@mythodeia
Copy link
Contributor

@jyothireddy58 is this crash easy to replicate using the demo project?

@jyothireddy58
Copy link

Webp/decode.h file not found
On 25 Nov 2014 12:10, "Konstantinos K." notifications@github.com wrote:

@jyothireddy58 https://github.com/jyothireddy58 is this crash easy to
replicate using the demo project?


Reply to this email directly or view it on GitHub
#786 (comment).

@bpoplauschi
Copy link
Member

@jyothireddy58 I am asking you again, did you remove your old copy of SDWebImage and installed a new one using the recommended ways?

@jyothireddy58
Copy link

After drag and drop the sdwebimage folder folder color is coming in blue
color not in yellow volor may i knw thw reason
On 24 Nov 2014 09:44, "Reddy jyothi" reddyjyothi44@gmail.com wrote:

webP+decode.h filenot found is coming

On Sun, Nov 23, 2014 at 10:25 PM, kuberan notifications@github.com
wrote:

[image: screenshot]
https://cloud.githubusercontent.com/assets/1269336/5158326/40a68882-735f-11e4-89df-a651f2239880.jpg
I am trying to build an iOS project which used to work on iOS 7. Now on
iOS 8 I get this error when I try to build on Xcode. Will I be able to fix
this if I just upgrade to the latest SDWebImage ?


Reply to this email directly or view it on GitHub
#786 (comment).

@jyothireddy58
Copy link

Uiimage+webp.m in that webp/decode.h file not found coming
On 24 Nov 2014 09:44, "Reddy jyothi" reddyjyothi44@gmail.com wrote:

webP+decode.h filenot found is coming

On Sun, Nov 23, 2014 at 10:25 PM, kuberan notifications@github.com
wrote:

[image: screenshot]
https://cloud.githubusercontent.com/assets/1269336/5158326/40a68882-735f-11e4-89df-a651f2239880.jpg
I am trying to build an iOS project which used to work on iOS 7. Now on
iOS 8 I get this error when I try to build on Xcode. Will I be able to fix
this if I just upgrade to the latest SDWebImage ?


Reply to this email directly or view it on GitHub
#786 (comment).

@mythodeia
Copy link
Contributor

@jyothireddy58 when you drag & drop a folder you should tick the 'Copy items if needed' checkbox.
This will create a copy of the files into your project. What you did was create references to the location you copied them from.
First remove all files for SDWebImage from your current project.
open terminal in your desktop or whichever location suits you and paste this:
git clone --recursive git@github.com:rs/SDWebImage.git
when its done:

  • open the folder you downloaded and drag & drop the 'SDWebImage' folder in your project
  • then open the Vendors folder and drag & drop the 'libwebp' folder in your project.
    Clean & rebuild your project

That should do it

@jyothireddy58
Copy link

I will do and let u knw
On 25 Nov 2014 15:08, "Konstantinos K." notifications@github.com wrote:

@jyothireddy58 https://github.com/jyothireddy58 when you drag & drop a
folder you should tick the 'Copy items if needed' checkbox.
This will copy the files in your project. What you did was create
references to the location you copied them from.
First remove all files for SDWebImage from your current project.
open terminal in your desktop or whichever location suits you and paste
this:
git clone --recursive git@github.com:rs/SDWebImage.git
when its done:

  • open the folder you downloaded and drag & drop the 'SDWebImage'
    folder in your project
  • then open the Vendors folder and drag & drop the 'libwebp' folder in
    your project. Clean & rebuild your project That should do it


Reply to this email directly or view it on GitHub
#786 (comment).

@jyothireddy58
Copy link

Libwebp folder empty is coming
On 25 Nov 2014 15:11, "Reddy jyothi" reddyjyothi44@gmail.com wrote:

I will do and let u knw
On 25 Nov 2014 15:08, "Konstantinos K." notifications@github.com wrote:

@jyothireddy58 https://github.com/jyothireddy58 when you drag & drop a
folder you should tick the 'Copy items if needed' checkbox.
This will copy the files in your project. What you did was create
references to the location you copied them from.
First remove all files for SDWebImage from your current project.
open terminal in your desktop or whichever location suits you and paste
this:
git clone --recursive git@github.com:rs/SDWebImage.git
when its done:

  • open the folder you downloaded and drag & drop the 'SDWebImage'
    folder in your project
  • then open the Vendors folder and drag & drop the 'libwebp' folder
    in your project. Clean & rebuild your project That should do it


Reply to this email directly or view it on GitHub
#786 (comment).

@mythodeia
Copy link
Contributor

@jyothireddy58
i just tried that myself and the folder is not empty.
Are you waiting for the whole process to finish? First it downloads the SDWebImage library and then all then external modules

@jyothireddy58
Copy link

still im not getting the libwebp in vendors folder

@mythodeia
Copy link
Contributor

@jyothireddy58
are you following the steps as per my post? are you cloning the repository recursively in terminal?
your other option is to directly download the webp lib
git clone --recursive http://git.chromium.org/webm/libwebp.git

@jyothireddy58
Copy link

After importing everything dublicate symbol _webpinitupsamplersNEON in
iscoming
On 25 Nov 2014 18:31, "Konstantinos K." notifications@github.com wrote:

@jyothireddy58 https://github.com/jyothireddy58
are you following the steps as per my post? are you cloning the repository
recursively in terminal?


Reply to this email directly or view it on GitHub
#786 (comment).

@jyothireddy58
Copy link

Linker error is coming
On 26 Nov 2014 12:09, reddyjyothi44@gmail.com wrote:

After importing everything dublicate symbol _webpinitupsamplersNEON in
iscoming
On 25 Nov 2014 18:31, "Konstantinos K." notifications@github.com wrote:

@jyothireddy58 https://github.com/jyothireddy58
are you following the steps as per my post? are you cloning the
repository recursively in terminal?


Reply to this email directly or view it on GitHub
#786 (comment).

@mythodeia
Copy link
Contributor

@jyothireddy58 duplicate symbol errors usually mean that you have duplicate files in your source.
Check your compile sources for duplicates.

This issue was closed.
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

6 participants