Sitemap

Member-only story

‘NetworkError’ is ambiguous for type lookup in this context

2 min readJun 16, 2025

--

My Bugs: when build app after rebase

Source By Author

This time, I will list the bugs I’ve found and post them here.
They will be added to this reading list, so if you’re experiencing similar issues, you can check this list.

Error List

6 stories

A few days ago, I built the project for the application at the company where I work.

After building it, I encountered this error:

NetworkError' is ambiguous for type lookup in this context

This happened because the application contains multiple frameworks.

The error message included the word “ambiguous”, which means there are two classes with the same name.

In the Custom Framework:

public enum NetworkError: Error {
case badURL
// ...
}

And in the Core Framework:

public enum NetworkError: Error, LocalizedError, Equatable {
case invalidURL
case noData
// ...
}

--

--

No responses yet