Bridgecraft icon indicating copy to clipboard operation
Bridgecraft copied to clipboard

"Bridging Header Setting Not Found in Project"

Open tjprescott opened this issue 2 years ago • 0 comments

I am trying to use Bridgecraft to get the generated Swift interface for Objective-C and mixed source frameworks, because we have tooling that requires Swift source or swiftinterface format.

To that end, I created a very simple XCodeproj file for a framework that contains one simple Swift class and an .m/.h pair containing one simple Objective-C class.

I can build the project without issue in Xcode and with xcodebuild, but whenever I try and run Bridgecraft, it fails saying "bridging header setting not found in project". Running with --verbose doesn't yield any additional info. My understanding from https://developer.apple.com/documentation/swift/imported_c_and_objective-c_apis/importing_objective-c_into_swift is that bridging headers only apply to apps. Since this is a mixed-source framework, it should be using an umbrella header, which is automatically synthesized during the build.

I'm wondering what I am missing to make this work?

tjprescott avatar Aug 20 '21 19:08 tjprescott