dropbox-sdk-obj-c: DBDownloadUrlTask failure

DBDownloadUrlTask works well, showing progress until 100%, but in response block it gives me the following error (and file is not downloaded in the end):

DropboxClientError[{ NSError = "Error Domain=NSCocoaErrorDomain Code=4 \"\U201cCFNetworkDownload_dxtMTH.tmp\U201d couldn\U2019t be moved to \U201cDocuments\U201d because either the former doesn't exist, or the folder containing the latter doesn't exist.\" UserInfo={NSSourceFilePathErrorKey=/private/var/mobile/Containers/Data/Application/.../Library/Caches/com.apple.nsurlsessiond/Downloads/test/CFNetworkDownload_dxtMTH.tmp, NSUserStringVariant=(\n Move\n), NSFilePath=/private/var/mobile/Containers/Data/Application/.../Library/Caches/com.apple.nsurlsessiond/Downloads/test/CFNetworkDownload_dxtMTH.tmp, NSDestinationFilePath=/var/mobile/Containers/Data/Application/.../Documents/sound2.mp3, NSUnderlyingError=0x14641e40 {Error Domain=NSPOSIXErrorDomain Code=2 \"No such file or directory\"}}"; }];

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 23 (10 by maintainers)

Most upvoted comments

@JustStoryteller Please try the followings. pod ‘ObjectiveDropboxOfficial’, ‘~>3.1.0’

Pod update doesn’t work sometimes and when I specify the version, I can get the latest version of sdk. pod ‘ObjectiveDropboxOfficial’, ‘~>3.x.x’ You can specify the latest version you find on this repository as well.

https://github.com/dropbox/dropbox-sdk-obj-c/blob/master/ObjectiveDropboxOfficial.podspec The podspec indicates which the latest version is so you can easily know.

Let me know if you have got any new issue.

@kennybuc, @scobbe thank you for your help! It’s OK

@JustStoryteller: rm Podfile.lock; rm -rf Pods/; pod install should update. Let me know if that doesn’t work.

@euroboy: Would you mind updating to the latest version of the SDK (v3.1.0)? A number of download bugs have been fixed in recent versions.

Once you have updated to the latest version, please let me know if the problem you’re experiencing still persists. Thank you.