我使用ASIHTTPReqeust下載文件。一切正常下載,但它不能將文件從臨時目錄移動到文檔。當我執行ASIHTTPRequestErrorDomain代碼= 8。無法將文件從臨時目錄移動到文檔
-(void) request:(ASIHTTPRequest *)request didReceiveData:(NSData *)data
請求失敗,並出現錯誤。但文件被下載。
如果我刪除此實現,一切都很好,和文件移動到文檔。 這裏是錯誤文本:
Error Domain=ASIHTTPRequestErrorDomain Code=8 "Failed to move file from '/var/folders/Qu/Qu0o0VcpEY4npJr2C1yPzE+++TI/-Tmp-/Skrillex feat. Nero - Wobbleland.mp3' to '/Users/Timur/Library/Application Support/iPhone Simulator/4.3/Applications/34389282-4013-4354-95D9-DF2847B4EE55/Documents/Audio/Skrillex feat. Nero - Wobbleland.mp3'" UserInfo=0x5949520 {NSUnderlyingError=0x59992a0 "The operation couldn’t be completed. (Cocoa error 4.)", NSLocalizedDescription=Failed to move file from '/var/folders/Qu/Qu0o0VcpEY4npJr2C1yPzE+++TI/-Tmp-/Skrillex feat. Nero - Wobbleland.mp3' to '/Users/Timur/Library/Application Support/iPhone Simulator/4.3/Applications/34389282-4013-4354-95D9-DF2847B4EE55/Documents/Audio/Skrillex feat. Nero - Wobbleland.mp3'}
誰有類似的問題?
我遇到過類似的問題。 – iDilip