cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
What’s new: end-to-end encryption, Replay and Dash updates. Find out more about these updates, new features and more here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

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

ricip
Explorer | Level 3
Go to solution

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?

1 Accepted Solution

Accepted Solutions

Greg-DB
Dropbox Staff
Go to solution

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".

View solution in original post

5 Replies 5

Mark
Super User II
Go to solution
*moves to API forum*

 


:penguin::penguin: - :penguin: - :penguin: - :penguin:


Heart Did this post help you? If so please mark it for some Kudos below. 


:white_check_mark: Did this post fix your issue/answer your question? If so please press the 'Accept as Solution' button to help others find it.


:arrows_counterclockwise: Did this post not resolve your issue? If so please give us some more information so we can try and help - please remember we cannot see over your shoulder so be as descriptive as possible! 


 

Greg-DB
Dropbox Staff
Go to solution
Can you share the code you're using and the full error message you get? Thanks in advance!

ricip
Explorer | Level 3
Go to solution

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
Dropbox Staff
Go to solution

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
Explorer | Level 3
Go to solution

Problem solved! Thanks a lot!

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    ricip Explorer | Level 3
  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    Mark Super User II
What do Dropbox user levels mean?