Need to see if your shared folder is taking up space on your dropbox 👨‍💻? Find out how to check here.

Forum Discussion

ricip's avatar
ricip
Explorer | Level 3
9 years ago
Solved

iOS Build error: No visible @interface for ‚DBUploadTask<DBFILES…> declares the selector 'progress'

I get the error message above after adding a method to upload files to DropBox (syntax identical to sample code in tutorial). Change of „Other Linker Flags“ in Project and Target to $(inherited) -framework "ObjectiveDropboxOfficial" had no effect. Anyone has an idea?

  • Thanks! That's helpful.

     

    In version 3.0.0 of the API v2 Objective-C SDK, "progress" was renamed. You should replace "progress" in your code with "setProgressBlock".

5 Replies

Replies have been turned off for this discussion
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    9 years ago
    Can you share the code you're using and the full error message you get? Thanks in advance!
  • ricip's avatar
    ricip
    Explorer | Level 3
    9 years ago

    Thank you for your support.

     

    The full error message is:

     

    No visible @interface for 'DBUploadTask<DBFILESFileMetadata *,DBDILESUploadError *>' declares the selector 'progress'

     

    The code used is:

     

     

    - (void)dbUploadFileWithPath:(NSString *)dbPath withData:(NSData *)dbData
    {
        [[[_client.filesRoutes uploadData:dbPath inputData:dbData]
          setResponseBlock:^(DBFILESFileMetadata *result, DBFILESUploadError *routeError, DBRequestError *error) {
              if (result) {
                  NSLog(@"%@\n", result);
              } else {
                  NSLog(@"%@\n%@\n", routeError, error);
              }
          }] progress:^(int64_t bytesUploaded, int64_t totalBytesUploaded, int64_t totalBytesExpectedToUploaded) {
              NSLog(@"\n%lld\n%lld\n%lld\n", bytesUploaded, totalBytesUploaded, totalBytesExpectedToUploaded);
          }];    
    }

     

        

     

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    9 years ago

    Thanks! That's helpful.

     

    In version 3.0.0 of the API v2 Objective-C SDK, "progress" was renamed. You should replace "progress" in your code with "setProgressBlock".

  • ricip's avatar
    ricip
    Explorer | Level 3
    9 years ago

    Problem solved! Thanks a lot!

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!