-
Notifications
You must be signed in to change notification settings - Fork 522
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
af_setImage withurl throws deleted method error on 'request.resume()' in ImageDownloader.start method #215
Comments
Same here. |
Same for you or same in other issue? |
Same for me, sorry. |
I'm seeing this as well. It doesn't seem like that location itself should cause a crash, but I haven't been able to find any other sources. The error log simply says "fatal error: call of deleted method"
|
Same, this is only happening after updating to Alamofire 4.1.0. |
same here |
Same here. @efremidze I am still getting the error with Alamofire 4.0.1 |
same here |
+1 |
+1!!! |
I'd say you all need to probably clean and build again based on everything I've found when googling around:
I've been unable to reproduce this issue with our sample app. If someone can put up a sample app that reproduces this issue, I'll be happy to investigate further. But it looks like right now it's most likely a project configuration issue. As always, first clean and rebuild. If the issue persists, then wipe I'm going to close this issue out for now. If someone can submit a sample app that repros the problem, I'll be more than happy to re-open this issue and investigate further. Cheers. 🍻 |
not work for me((( |
I hate to say this, but ... I got this happening with a project of mine too. On a brand new MacBook Pro that had no pre-existing DerivedData (fresh install), using Carthage for Alamofire (4.1.0) & AlamofireImage (3.1.0). Fresh Xcode via App Store, fresh Carthage pkg from GitHub, build from clean checkout of own source code. Run in simulator. Load image via |
The same issue |
@cnoon I've created a very simple example in which I was able to reproduce the issue. See here: Let me know if you have any issues with the project |
Awesome, thank you @jndonald3. I'll dig in and see what I can find. 🍻 |
Is the issue Carthage? Has anyone reproduced this with CocoaPods or submodules? I was unable to repro it last night with the AFI sample app. |
Okay everyone, @jshier and I have mostly gotten to the bottom of the issue. It looks to be a weird issue with Carthage. The sample app definitely produces the error you all are seeing when using Carthage. Thanks again @jndonald3! 🍻 I was able to get the sample app working with CocoaPods and pure submodules without issue. I was also able to get the sample app working by simply pointing at the We checked all the project settings in AF and AFI and they're all correct. It seems to be some optimization or project setting mismatch here. What we think the underlying issue is is that the Cartfile specifies AF 4.1+ and AFI 3.1+. The AFI 3.1.0 release points to the AF 4.0.1 submodule. It appears that when Carthage compiles the AFI framework, it's actually compiling against the AF 4.0.1 release and not the 4.1.0 which it previously built. This could be due to the AF project being nested directly inside the AFI project rather than using weak linking through a workspace. We had to do this quite a while ago since What's really odd is that we've had the project structured this way for at least a year and we've never seen this issue. We're guessing this is some sort of regression on the Carthage side. If there's some odd issue with the AF or AFI project configuration, we have no idea what it is. If someone wants to open up an issue with the Carthage team to have them investigate further, that would probably be wise. They should be able to figure out what the problem is with @jndonald3's sample app. So in summary, the issue is Carthage. Thankfully though, Carthage appears to work when we update the AF submodule in AFI to match the latest version of AF. So once we release the latest releases here shortly, they should work for now. That doesn't mean this won't break again though with the next Alamofire release after that. Would someone be willing to open a ticket with the Carthage team to continue this investigation? I'm going to close this issue out since there's nothing left for us to investigate. Please feel free to link this ticket to the Carthage ticket for more info. Cheers. 🍻 |
It's working again with 3.2.0 |
Hi,
I'm running Alamofire 4.1.0 and AlamofireImage 3.1.0 using carthage and swift 3.0.1
I've juste updated to swift 3.0.1 and update carthage alamofires libraries. And all my af_setImage method calls throws deleted method error on 'request.resume()' in ImageDownloader.start method
Code line
I don't know if I can simply delete this line or need I to use other method instead of af_setImage?
Is it a new version, a rapid fix or something I can do while waiting for next release to continue using alamofireImage for getting images from web?
Thanks by advance
The text was updated successfully, but these errors were encountered: