build settings in xcconfigs choke on the
| Originator: | irons | ||
| Number: | rdar://20319015 | Date Originated: | 26-Mar-2015 04:58 PM |
| Status: | Duplicate of 4416211 | Resolved: | |
| Product: | Developer Tools | Product Version: | 6.2 |
| Classification: | Serious Bug | Reproducible: | Always |
Summary: Xcode misinterprets xcconfig files containing URLs, because it interprets “//“ as a comment token. Steps to Reproduce: 1. Create a project with a build setting, "MY_SETTING". 2. On the Debug configuration, set MY_SETTING to https://apple.com 2. Create an xcconfig file containing the following: MY_SETTING = https://apple.com 3. Associate your new xcconfig with the Release build configuration. Expected Results: MY_SETTING should be "https://apple.com" (without quotes) on the Debug and Release configurations. Actual Results: On the Release configuration, controlled by xcconfig, the setting is "https:". Screenshot at http://bpxl.io/18BkG/3ZSHdDiG. Sample project attached. Notes: Conventional escaping doesn't work. If I write "https:\/\/apple.com" in the xcconfig, that's how it shows up in the build settings. A colleague suggested putting a null variable between the slashes, like https:/$()/apple.com, which is hideous, but does achieve the intended effect.
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!