Xcode 10 10L176w omits environment variables set to empty strings

Originator:tommaso.piazza
Number:rdar://40843445 Date Originated:2018-06-06
Status:Closed Resolved:2018-06-12
Product:Xcode Product Version:10 10L176w
Classification:Serious Bug Reproducible:Always
 
Summary:

Xcode 10 10L176w omits environment variables that otherwise were set to empty strings

Steps to Reproduce:

 - Set ` EXPANDED_CODE_SIGN_IDENTITY` or any other build variable to empty string in the Xcode Project
 - Notice it's missing in the list of env variables at build time

Expected Results:

 - Variable set to empty String are present in the build env variables 

Actual Results:

- Variable set to empty String are NOT present in the build env variables 

Version/Build:

Xcode 10 10L176w

Configuration:
n/a

Comments

Apple's Response:

We have determined that this is an issue for you to resolve.

There’s no difference between an empty and unset environment variable; the code shouldn’t depend on the build system to log empty/unset variables.

Please let us know whether the issue is resolved for you by updating your bug report
By tommaso.piazza at June 18, 2018, 12:33 p.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!