The existing target does not have a "quick compiler code generation" section

I have an existing Objective-C iOS project and I want to add fast files to it. The project has 2 goals.

I created the bridge header MyProject-Bridging-Header.h and the automatically generated bridge header MyProject-Swift.h is generated by Xcode, as expected. But only for the purpose of "A".

Target "B" does not display the file MyProject-Swift.h. The reason is that the target does not have “fast compiler code generation”, which is responsible for the automatic generation of this file.

I tried to set the file at the project level - I expected to inherit the goals. But that does not work.

How do I get “quick compiler code generation” into existing manual build settings?

+6
source share
3 answers

I accidentally found out how to do this: create a new fast file and include all the necessary goals (Xcode asks at the end of the file settings). Xcode then asked me if I wanted to create a Bridging Header header and, more importantly, add a Swift section to the target.

+10
source

For any new users, the parameter you are looking for is under the "fast compiler - general"

Just scroll down from the fast compiler - code generation. Also, make sure that you select "all" and not the "basic" (at the top) main functions hide some functions.

+7
source

Construction was an important step for me. Adding a Swift file to the target of interest, creating a bridge header and creating a project with these files . It is not enough just to add it, then delete and expect Xcode to update the project build settings for you.

0
source

All Articles