6
Mac App Store에 제출하기 전에 내 응용 프로그램을 샌드 박싱하려고하는데 dmg 파일을 열어야합니다. 다음을 시도했지만 Apple Sandbox와 함께 작동해야하는지 여부는 알 수 없습니다.샌드 박스 및 NSTask
NSTask *task = [[NSTask alloc] init];
[task setLaunchPath: @"/usr/bin/hdiutil"];
[task setArguments:
[NSArray arrayWithObjects: @"attach", [NSString stringWithFormat:@"%@/myfile.dmg", documentsDirectory], nil]];
[task launch];
[task waitUntilExit];
if (0 != [task terminationStatus])
NSLog(@"Mount failed.");
[task release];
내가 터미널이 작업에 대한 전체 경로를 붙여 넣을 경우, 나는 다음과 같은 오류가 응용 프로그램에서 실행하는 경우 : 어떤 도움
diskimages-helper[11437:303] ERROR: couldn't connect to framework.
diskimages-helper[11437:303] DIHelper: setupConnectionToFrameworkWithUUID: failed
hdiutil: attach failed - No child processes
Mount failed.
감사합니다! S.
샌드 박스 DMG를 마운트 할 수 없습니다. 안전하지 않습니다. – CodaFi
나는 똑같은 문제를 겪고있다. @ user375584가 그것을 고쳤는지 궁금하다. 감사 – Josh