[swift-users] Serious Issue with Project Preprocessor Build Setting, Xcode 7.3 and Swift.

Joe Groff jgroff at apple.com
Wed Mar 23 17:59:30 CDT 2016

> On Mar 23, 2016, at 9:43 AM, James Campbell via swift-users <swift-users at swift.org> wrote:
> We are experiencing an issue when compiling swift code under Xcode 7.3.
> Preprocessor macros specified in the Xcode Project aren't imported into swift. Ones manually declared in code are imported fine.
> Specifying Xcode 7.3 to use the Xcode 7.2 toolchain (Swift 2.1 etc) has no effect on this.
> This is preventing us from using Xcode 7.3 and being able to test for 9.3. Anybody else getting this issue?

The Swift and C family build settings in Xcode are distinct. Are you sure you set the -D flags in "Other Swift Flags" and not in the C build settings? Swift doesn't have preprocessor macros.


More information about the swift-users mailing list