Swift: ambiguous reference to NSNotFound

2019-07-16 05:08发布

问题:

After adding a bridging header to some Objective-C code I started receiving a compiler error about NSNotFound being an ambiguous reference. My guess is that it can be fixed with some sort of module prefix...

回答1:

Yes. Change it to: Foundation.NSNotFound