I have an enum in one of my Swift files called Foo
.
One of the Cocoapods called NameA
also has the same enum with name Foo
(public enum
, not inside any class).
This module also has a class with the same name as its framework NameA
.
If I try to refer to Foo
in NameA
module like this:
NameA.Foo
It doesn't work because the compiler thinks I'm referring to the class NameA
, but not the module NameA
.
The workaround posted here wont work for me either Swift namespace conflict
This seems to be a reported bug in swift: https://bugs.swift.org/browse/SR-898