Swift Bridging Header - A New Goal

I have an objective-c project with one class implemented in Swift. The project has two goals: A and B. For both of them, Xcode created bridge header files, A-Swift.hand B-Swift.h, and the application builds and runs both goals without any problems.

I added two new targets: C and D (this time no binder files were created). If I build A and B, there is no problem, but if I build C and D, the assembly will not be completed because it cannot be found B-Swift.h.

The goal of C is to simply duplicate A and D duplicate B, with some properties updated in the plist file.

Any suggestion?

+4
source share
2 answers

. .m . Build Settings β†’ Swift Compiler General Objective-C Generated Interface Header Name A-Swift.h .

+2

, Objective-C Bridging Header. Objective-C

> a > Swift Compiler-General > Bridging. .

0

All Articles