Xcode 12 - "Target MemberShip" is not present on C files.

Hi,

In previous Xcode version, I added my C code in the Swift project and it built. And I could debug it from Xcode.

In Xcode 12, I cannot added the C code to compile.

How I can do ?
How to add files to the project ? Target MemberShip is not present on C files.


TIA
Sébastien

Target MemberShip is not present on C files.

As far as I tried on a Swift project with Xcode 12.0.1, New > File... > C File worked as expected and Target MemberShip appears in the File Inspector.

Can you tell me how you have added your C files?
I simply used Drag and Drop from the finder.

I tested with new file, I got the "Target Membership". but I can create more 100 files and copy my source in them.

I found the bug.
If I drag & drop my source folder: I haven't "Target Membership". (I have it on the folder, but not on files). Files didn't compiled.

If I create the group in Xcode and drag & drop the files then I got the "Target Membership" on my files. and the files compile.

OOPer Thank for your help
Xcode 12 - "Target MemberShip" is not present on C files.
 
 
Q