Xcode 6.2 beta 4 prepends $(PROJECT_DIR) to scheme-configured environment variables

Originator:tangphillip
Number:rdar://19465871 Date Originated:13-Jan-2015 08:37 PM
Status:Duplicate of 19451412 (Open) Resolved:16-Jan-2015 02:10 PM
Product:Developer Tools Product Version:Xcode 6.2 beta 4 (6C107a)
Classification:Serious Bug Reproducible:Always
 
Summary:
When adding an environment variable to a scheme (see The-Setting.png), you specify both key and value. In Xcode 6.2 beta 4, Xcode prepends the path/to/xcodeproj/ to the value of the environment variable.

This is a regression from Xcode 6.1.1 (and I *think* also 6.2 beta 3).

Steps to Reproduce:
1. Specify an key and value for an environment variable in your build scheme.
2. Read the value of that key with [[[NSProcessInfo processInfo] environment] objectForKey:key].

Expected Results:
The value should be the same string that's written in the build scheme.

Actual Results:
The value is the string written in the build scheme...with the $(PROJECT_DIR) prepended.

Version:
Xcode Version 6.2 (6C107a), running on OS X Yosemite 10.10.1 (14B25)

Notes:
This is a regression from Xcode 6.1.1.

Configuration:
Late 2013 13" Retina MacBook Pro, 2.8 GHz i7

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!