Xcode 6.2 (6C107a) incorrectly populates args with arguments from scheme

Originator:iosdeveloperzone
Number:rdar://19594754 Date Originated:01/25/2015
Status:Closed as Duplicate rdar://19451412 Resolved:
Product:Developer Tools Product Version:
Classification: Reproducible:Always
 
Summary:
Arguments passed via an Xcode scheme are not correctly populated into the argv array and hence, by extension, the NSArgumentDomain of NSUserDefaults is incorrect.

Steps to Reproduce:
Run attached project. [OpenRadar: Will upload somewhere and post link in comments].

Expected Results:
The contents of argv should match those set in the scheme.


Actual Results:
argv is corrupted. Specifically it looks like the project directory is being prepended to each argument entry. 

Version:
Xcode 6.1 6C107a
OS X 10.10.1

Notes:


Configuration:
Does not occur: 6A313 6A2006 6C86e 
Does occur: 6C107a

Comments

Supporting source code

https://github.com/iosdevzone/IDZRadar19594754.git

By iosdeveloperzone at Jan. 26, 2015, 4:04 a.m. (reply...)

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!