cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Update: Find information on Dropbox support during COVID-19 here
Close
cancel
Showing results for 
Search instead for 
Did you mean: 

editing DBRoulette-Infor.plist in ioS SDK example

Frank T. New member | Level 1
New member | Level 1

In the instructions for editing the example project (DBRoulette) in the Dropbox iOS SDK :
https://www.dropbox.com/developers/core/sdks/ios

contains the instruction:

"Your app key is also needed in DBRoulette-Info.plist file so the app can register for the correct url scheme. To do this, find the file under the Resources group in the left pane, right-click it and select Open As → Source Code. Replace the text APP_KEY with your app's key."

Using Xcode version 6.1.1

Does not seem to offer a "right-click" option and the displayed file does not seem to have the words "APP_KEY" shown anywhere.

Any help would be appreciated.

3 Replies 3

Re: editing DBRoulette-Infor.plist in ioS SDK example

Frank T. New member | Level 1
New member | Level 1

Just to follow up on the above, without making any changes to the default Info.plist the application builds successfully but fails to launch properly in the simulator with the following error message to the console:

2014-12-25 16:24:24.927 DBRoulette[3708:245796] Application windows are expected to have a root view controller at the end of application launch
2014-12-25 16:24:37.026 DBRoulette[3708:245796] [ERROR] DropboxSDK: unable to link; app isn't registered for correct URL scheme (db-a1gl19aqwq24kzh)
kDBRootAppFolder

Re: editing DBRoulette-Infor.plist in ioS SDK example

Frank T. New member | Level 1
New member | Level 1

Further follow up on this issue:

I was able to locate a different version (same version number - "1.0") of info.plist on github which did have a reference to APP_KEY

https://github.com/dropbox-sdk-mirror/dropbox-sdk-ios/blob/master/examples/DBRoulette/DBRoulette-Inf...

Using this version and editing it in a text editor program to replace APP_KEY with my app_key I was able to get the simulator to work and see photos in my application.

Re: editing DBRoulette-Infor.plist in ioS SDK example

Dropboxer
Dropboxer

Thanks for the report Frank. I also just checked this in Xcode 6.1.1 using the latest version of the SDK (currently 1.3.13) and following the instructions from https://www.dropbox.com/developers/core/sdks/ios and the DBRoulette-Info.plist file does seem to contain the db-APP_KEY placeholder as expected:

https://www.dropbox.com/s/vgag4zsi6ypshy7/Screenshot%202015-01-02%2015.29.08.png?dl=0
https://www.dropbox.com/s/9o9371cvyxatws4/Screenshot%202015-01-02%2015.29.15.png?dl=0

Is this not what you saw? Were you using a different version of the SDK?

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?