Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8146221
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T13:55:22+00:00 2026-06-06T13:55:22+00:00

I have made an app which uses DropBox SDK for iPhone to connect to

  • 0

I have made an app which uses DropBox SDK for iPhone to connect to the users dropbox account and upload files. I am using XCode 3.2.5 and the iPhone Simulator is 4.2. My application works great on the simulator, but it crashes when I try it on the device. The following is the line of code where it crashes

DBSession* dbSession = [[[DBSession alloc] 
                                 initWithAppKey:kDropBoxAppKey 
                                 appSecret:kDropBoxAppSecret 
                                 root:kDBRootAppFolder] autorelease];

When I tried to debug, it could not recognize the object kDBRootAppFolder.

I checked out where this variable was defined, and it was located inside a file of the DropBox SDK called “DBSession.h” as

extern NSString *kDBRootAppFolder;

While I tried to debug and run it, I found that it showed kDBRootAppFolder was of unknown type.

Then, I tried debugging on the simulator, where it ran perfectly, there the value of kDBRootAppFolder when I printed it was ‘sandbox’.

I really dont know why this runtime error is occurring in the device. Please help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T13:55:24+00:00Added an answer on June 6, 2026 at 1:55 pm

    That usually happens when object is released at bad time.

    Try this, note the retain in kDBRootAppFolder

    DBSession* dbSession = [[[DBSession alloc] 
                                     initWithAppKey:kDropBoxAppKey 
                                     appSecret:kDropBoxAppSecret 
                                     root:[kDBRootAppFolder retain]] autorelease];
    

    if it doesn´t work, use NSLog(@"%@", kDBRootAppFolder); before and after the initiation of dbSession to check if is correctly defined.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have made a layout for my app which uses a lot of activities.
I have made an iPhone App which has a loginwithFacebook button , the login
I have Ripple which im using to test app made for android. App is
Environment: xcode 3.2.1, document-based core-data application. I have a document-based cocoa app which uses
I have an existing app in which I made the mistake of using String.GetHashCode
I am trying to debug an app I have made which uses an accessory
I have made a app which uses visual studio's app.config to store settings about
I have made an android app which uses speech recognition. The problem is that
I have made an android app which working fine. I implemented the Login functionality
I have made an app that implements the iPhone's camera. When the user finishes

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.