Single quote character in workspace name not escaped for "unextended-module-overlay.yaml"

Originator:neocool2
Number:rdar://20933735 Date Originated:13-May-2015 02:01 PM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 6.3.2 (6D2102)
Classification:Serious Bug Reproducible:Always
 
Summary:

If a workspace name contains the single quote character and is set up so that “unextended-module-overlay.yaml” will be generated as part of the process, the build will fail because the single quote character is not escaped in the YAML file.

Steps to Reproduce:

1. Build the attached project.

Expected Results:

It builds.

Actual Results:

Build fails with:

/Users/boris/Library/Developer/Xcode/DerivedData/A'B-emzdgexptdnwdmeihdgkephqexgs/Build/Intermediates/Alamofire.build/Debug-iphonesimulator/Alamofire iOS.build/unextended-module-overlay.yaml:6:65: error: unknown key
    'name': '/Users/boris/Library/Developer/Xcode/DerivedData/A'B-emzdgexptdnwdmeihdgkephqexgs/Build/Products/Debug-iphonesimulator/Alamofire.framework/Modules'
                                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<unknown>:0: error: invalid virtual filesystem overlay file '/Users/boris/Library/Developer/Xcode/DerivedData/A'B-emzdgexptdnwdmeihdgkephqexgs/Build/Intermediates/Alamofire.build/Debug-iphonesimulator/Alamofire iOS.build/unextended-module-overlay.yaml'
<unknown>:0: error: clang importer creation failed

Regression: -

Notes: 

Example YAML:

{
  'version': 0,
  'case-sensitive': 'false',
  'roots': [{
    'type': 'directory',
    'name': '/Users/boris/Library/Developer/Xcode/DerivedData/A'B-emzdgexptdnwdmeihdgkephqexgs/Build/Products/Debug-iphonesimulator/Alamofire.framework/Modules'
    'contents': [{
      'type': 'file',
      'name': 'module.modulemap',
      'external-contents': '/Users/boris/Library/Developer/Xcode/DerivedData/A'B-emzdgexptdnwdmeihdgkephqexgs/Build/Intermediates/Alamofire.build/Debug-iphonesimulator/Alamofire iOS.build/unextended-module.modulemap',
    }]
  }]
}

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!