Why am I getting an error saying a bridging header does not exist?

Why am I getting the following error when compiling some of the swift files. The error occurs in the tests target. It doesn't occur in the main target or the ui tests target.


<unknown>:0: error: bridging header '/Users/Shinehah/Documents/Xcode Projects/IPv4 Calculator folder/IPv4Calculator/IPv4Calculator/IPv4CalculatorTests-Bridging-Header.h' does not exist

Answered by DTS Engineer in 269164022

The bridging header build setting (

SWIFT_OBJC_BRIDGING_HEADER
) is per target. It looks like your test target has it pointing to a file that doesn’t exist. You can either fix the build setting or fix the location fo the bridging header.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"
Accepted Answer

The bridging header build setting (

SWIFT_OBJC_BRIDGING_HEADER
) is per target. It looks like your test target has it pointing to a file that doesn’t exist. You can either fix the build setting or fix the location fo the bridging header.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"
Why am I getting an error saying a bridging header does not exist?
 
 
Q