Why does MacOS build fail on Multi-platform app with bridging header>

I am building a multi-platform app in Xcode 12.2 beta using the latest swift and swift versions.

My code references C and I do have the bridging header in place.

I am able to successfully run the app in the iPhone and iPad simulator, and an iPhone device. However when I try to run the macOS on My Mac, I receive compile errors stating that it cannot find various variables in scope. It is if it is not utilizing the bridging header.

Because the bridging header it is a C header, it does not allow me to tick/untick the target memberships. And in the bridging header I am using a simple import reference to the actual C header file.

Is there something more that I need to do?

Thanks in advance for any guidance that you can provide!

Answered by mbain108 in 636393022
I was able to find the target for the macOS and the path for the bridging header was blank. After populating it with the correct information, the macOS version runs just as nicely as the iOS. YAY!
Accepted Answer
I was able to find the target for the macOS and the path for the bridging header was blank. After populating it with the correct information, the macOS version runs just as nicely as the iOS. YAY!
Why does MacOS build fail on Multi-platform app with bridging header>
 
 
Q