cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Are you interested in hearing how one of our Community members uses Dropbox for sailing trips? Read all about it 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: 

Problems when migrating from API v1 to v2

Problems when migrating from API v1 to v2

Mr_K
Explorer | Level 3
Go to solution

When migrating my Objective C project for iOS from Dropbox API v1 to v2

I am changing my source code, replacing old

 

#import <DropboxSDK/DropboxSDK.h>

to new

#import <ObjectiveDropboxOfficial/ObjectiveDropboxOfficial.h>

 

But when compiling the project I get an error:

 

'ObjectiveDropboxOfficial/ObjectiveDropboxOfficial.h' file not found

 

Also in "Pods > Products" section in Xcode both "ObjectiveDropboxOfficial.framework" and "Pods_BASIC.framework" frameworks are marked in red color.

 

 

What settings are missing or what I am doing wrong?

 

26 Replies 26

Mr_K
Explorer | Level 3
Go to solution

I am using Xcode 8.3.3 on macOS 10.12.5

Stephen C.14
Dropbox Staff
Go to solution

Strange. So am I. When I run `pod install` on the project you uploaded, and open the `xcworkspace` file, and build, it builds successfully.

 

What's your output for `pod --version`?

 

Mine is:

 

```

scobbe-mbp:server scobbe$ pod --version
1.2.0.beta.1

```

Mr_K
Explorer | Level 3
Go to solution

My pod version is 1.2.1

 

It seems that 

#import <ObjectiveDropboxOfficial/ObjectiveDropboxOfficial.h>

now raises no error, but when I compile that test project I get this error:

 

Error: unable to read module map contents from 'Target Support Files/ObjectiveDropboxOfficial/ObjectiveDropboxOfficial.modulemap': Error Domain=NSCocoaErrorDomain Code=260 "The file “ObjectiveDropboxOfficial.modulemap” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/Users/kibernetik/Downloads/BASICcopy/Pods/Target Support Files/ObjectiveDropboxOfficial/ObjectiveDropboxOfficial.modulemap, NSUnderlyingError=0x7fa1f005d630 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}

 

 

Mr_K
Explorer | Level 3
Go to solution

No, this procedure and all other suggestions in that topic did not make missing file

 

/Pods/Target Support Files/ObjectiveDropboxOfficial/ObjectiveDropboxOfficial.modulemap

 

to appear. Making "pod install" command also does not create it.

 

Again I have "file not found" error concerning

#import <ObjectiveDropboxOfficial/ObjectiveDropboxOfficial.h>

 

 

Stephen C.14
Dropbox Staff
Go to solution

Then I would recommend using Carthage, rather than CocoaPods, as it is less invasive. You can build the binaries with Carthage and then drage and drop them into each of your targets.

 

This approach will work better, I think.

Mr_K
Explorer | Level 3
Go to solution

Thank you for your suggestion!

I will try.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Mr_K Explorer | Level 3
  • User avatar
    Stephen C.14 Dropbox Staff
What do Dropbox user levels mean?