Alamofire / AlamofireImage

AlamofireImage is an image component library for Alamofire
MIT License
3.99k stars 523 forks source link

Crash on af.setImage #436

Closed Azeoo-Loris closed 2 years ago

Azeoo-Loris commented 3 years ago

What did you do?

implementation of setImage method in UIImageView subclass

image

What did you expect to happen?

Image is downloaded and displayed on the UIImage

What happened instead?

Crash on Alamofire Session init Class

image

Alamofire Environment

AlamofireImage version: 4.1.0 Alamofire version: 5.4.1 Xcode version: 12.3 Swift version: 5.3 Platform(s) running AlamofireImage: Ios macOS version running Xcode: Catalina 10.15.4

Demo Project

ℹ Please link to or upload a project we can download that reproduces the issue.

armarpc commented 3 years ago

I was using Carthage for importing both Alamofire and AlamofireImage and was experiencing this issue. I solved it by removing both frameworks from Carthage and importing AlamofireImage into my project through Swift Package Manager. Screen Shot 2021-02-10 at 2 03 14 PM

sloik commented 3 years ago

Same thing when using Carthage.

jshier commented 2 years ago

This appears to be a runtime issue, not specifically AFI related.