0
我試圖把保存因爲我不能使用的路徑「/子文件夾」的經修改的路徑NSString的 我的代碼是:如何焦炭修復這個錯誤,NSString的
NSString *bath =[NSString stringWithFormat:@"%@/path", path];
pid_t pid;
int status;
const char *argv[] = {"mkdir", bath, NULL};
posix_spawn(&pid, "/bin/mkdir", NULL, NULL, (char* const*)argv, NULL);
waitpid(pid, &status, WEXITED);`
https://i.stack.imgur.com/0ws5N.jpg
我得到這個錯誤現在https://imgur.com/gallery/Lggqu –
我增加了一點錯誤檢查。你應該確保洗澡是有效的。 –