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

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

Open
fidergo-stephane-gourichon opened this issue Apr 1, 2015 · 0 comments

Comments

@fidergo-stephane-gourichon

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 ?

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

1 participant