Xcode incorrectly shows warnings about missing headers in a framework's umbrella header.

When converting some of our frameworks to universal frameworks (multiple target platforms), error messages appear in Xcode that we believe are incorrect: Something like this: Umbrella header for module ‘TestFramework’ does not include header ‘iOS.h’

This post links to an example project which shows the behaviour (UmbrellaHeadersTest.zip).

See the included README.txt

Any suggestions on how to reliably eliminate these warnings would be greatly appreciated!

UmbrellaHeadersTest.zip

Rather than splitting the umbrella header based on platform like that, I'd suggest moving the platform conditionals into the lower-level header files instead so that their function-level contents are guarded by platform appropriately, while maintaining a simple umbrella that can just straight import all public headers for the framework without any of the platform guards you have now.

—Ed Ford,  DTS Engineer

Xcode incorrectly shows warnings about missing headers in a framework's umbrella header.
 
 
Q