Cannot import into the Swift Objective-C header file, which imports Project-Swift.h

I am trying to # import the Objective-C class into my Project-Bridging-Header.h. The problem is that the same class has #import for my Project-Swift.h file. So - I get a compilation error.

How can i solve this?

+6
source share
1 answer

You can make the following listing declaration:

enum myEnum;

But this is not very impressive . The prevailing wisdom is to identify any cross-language transitions in the context of Ojective-C.

0
source

Source: https://habr.com/ru/post/977480/


All Articles