Skip to content

Xcode 16 compiler warnings extending UIKit types with AlamofireExtended #478

@adamjansch

Description

@adamjansch

ℹ Please fill out this template when filing an issue.
All lines beginning with an ℹ symbol instruct you with what info we expect. You can delete those lines once you've filled in the info.

Per our *CONTRIBUTING guidelines, we use GitHub for
bugs and feature requests, not general support. Other issues should be opened on Stack Overflow with the tag alamofireimage.

Please remove this line and everything above it before submitting.

What did you do?

I built AlamofireImage 4.3.0 (installed via Cocoapods) with Xcode 16 beta 3 (16A5202i)

What did you expect to happen?

No compiler warnings from AlamofireImage.

What happened instead?

Received 3 compiler warnings from AlamofireImage:

  • Extension declares a conformance of imported type 'UIButton' to imported protocol 'AlamofireExtended'; this will not behave correctly if the owners of 'UIKit' introduce this conformance in the future
  • Extension declares a conformance of imported type 'UIImage' to imported protocol 'AlamofireExtended'; this will not behave correctly if the owners of 'UIKit' introduce this conformance in the future
  • Extension declares a conformance of imported type 'UIImageView' to imported protocol 'AlamofireExtended'; this will not behave correctly if the owners of 'UIKit' introduce this conformance in the future
2024-06-12 Xcode - AlamoFire warnings in Xcode 16

Alamofire Environment

**Alamofire version: 4.3.0
**Xcode version: 16.0 beta 3 (16A5202i)
**Swift version: 5
**Platform(s) running AlamofireImage: iOS/Mac Catalyst
**macOS version running Xcode: Sonoma 14.5

Demo Project

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions