Skip to content
This repository was archived by the owner on Sep 14, 2026. It is now read-only.
This repository was archived by the owner on Sep 14, 2026. It is now read-only.

error: 'AsyncImageView' is ambiguous for type lookup in this context #61

Open

Description

When using AsyncImageView 1.5.1 and Spring https://github.com/MengTo/Spring, both as pods in a Swift project, the following compile-time error occurs:

error: 'AsyncImageView' is ambiguous for type lookup in this context
    @IBOutlet weak var myvariable:AsyncImageView!
                                  ^~~~~~~~~~~~~~
AsyncImageView.AsyncImageView:1:29: note: found this candidate
@objc(AsyncImageView) class AsyncImageView : UIImageView
                            ^
Spring.AsyncImageView:1:13: note: found this candidate
@objc class AsyncImageView : UIImageView

The traditional tool to fix such problems is separate namespaces, but there are no namespaces.

Based on similar problem Haneke/HanekeSwift#147 and instructions in https://github.com/raywenderlich/swift-style-guide#class-prefixes or http://stackoverflow.com/questions/24214863/swift-class-prefix-needed, I tried to prefix the type specification like this:

@IBOutlet weak var myvariable:AsyncImageView.AsyncImageView!

but it produced the exact same error message.

How to use both pods in a project ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions