lionheart / openradar-mirror

A mirror of radars pulled from http://openradar.me/.
244 stars 17 forks source link

25322018: Preprocessor Macros specified in build settings don't import to swift #7830

Open openradar-mirror opened 8 years ago

openradar-mirror commented 8 years ago

Description

Summary: If you specify a preprocessor macro in the build settings they aren't imported to swift.

Steps to Reproduce:

  1. Add a preprocessor macro in the build settings.
  2. try to use it in swift.
  3. compiler error.

Expected Results: No compiler error, swift should be able to access the preprocessor macro.

Actual Results: There is a compiler error about the macro missing.

Version: Xcode 7.3

Notes: This is a really serious issue stopping us from compiling our project, please fix ASAP.

Configuration: This works in OS X 10.11, Swift 2.1 and Xcode 7.2.

But breaks in OS X 10.11, Swift 2.2 and Xcode 7.3.

Specifying Xcode 7.3 to use Xcode 7.2's toolchain doesn't fix the issue.

Attachments:

Product Version: 7.3 Created: 2016-03-23T20:38:37.263280 Originated: 2016-06-24T00:00:00 Open Radar Link: http://www.openradar.me/25322018

openradar-mirror commented 8 years ago

Modified: 2016-03-23T20:38:37.263490