可能重复:
NSTask 启动路径不可访问
任何想法为什么要调用这个,
NSTask *buildMTask = [[NSTask alloc] init];
[buildMTask setLaunchPath:@"/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\\ Simulator.app/Contents/MacOS/iPhone\\ Simulator"];
[buildMTask launch];
结果是
'启动路径不可访问' ?
谢谢!