"Arguments Passed On Launch" does not work with quoted strings anymore
| Originator: | |||
| Number: | rdar://17496435 | Date Originated: | 28-Jun-2014 08:08 PM |
| Status: | Open | Resolved: | |
| Product: | Xcode | Product Version: | 6.0 (6A216f) |
| Classification: | Reproducible: | Always |
Summary:
When setting entries for the “Arguments Passed On Launch” of the “Run” of a scheme, the parameters don’t work with quoted strings anymore. Tested on both 10.10 and 10.9.
Steps to Reproduce:
1. Create a new “Command Line Tool”
2. Replace the code with the attached main.m file
3. Build & Run
Expected Results:
Parameters within quotes are not subdivided on whitespace.
Actual Results:
Parameters within quotes are subdivided on whitespace.
Version:
Xcode Version 6.0 (6A216f) on both OS X 10.10 beta 2 and 10.9.
Notes:
Configuration:
Attachments:
'main.m'
int main(int argc, const char * argv[])
{
@autoreleasepool {
NSError *error = nil;
for (int i = 1; i < argc; i++) {
NSString *filePath = [NSString stringWithUTF8String:argv[i]];
NSString *fileName = [filePath lastPathComponent];
NSData *data = [NSData dataWithContentsOfFile:filePath
options:0
error:&error];
if (data == nil) {
NSLog(@"%@", error);
continue;
}
}
}
return EXIT_SUCCESS;
}
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!