unknown type errors, failed to emit precompiled header errors

My Xcode project has a c file, a swift file, and a .h header file with my declarations but when I build my xcdc project I get all these unknown type errors that occur specifically in my .h file.

I also get the error "failed to emit precompiled header" error in my Bridging-header-h file:

Answered by DTS Engineer in 779248022

It’s hard to read those screen shots [1] but my best guess is that your SCMVal_t structure is using standard integer types (like uint32_t) without first including <stdint.h>.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

[1] See tip 6 in Quinn’s Top Ten DevForums Tips.

Accepted Answer

It’s hard to read those screen shots [1] but my best guess is that your SCMVal_t structure is using standard integer types (like uint32_t) without first including <stdint.h>.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

[1] See tip 6 in Quinn’s Top Ten DevForums Tips.

thank you!

unknown type errors, failed to emit precompiled header errors
 
 
Q