• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
SQLITE file not Being Copied to App Package
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SQLITE file not Being Copied to App Package


  • Subject: SQLITE file not Being Copied to App Package
  • From: Roy Wagner <email@hidden>
  • Date: Sat, 24 Aug 2013 08:00:30 -0400

I have added an SQLITE file (mydb.sqlite) to my XCode4.6.3 Supporting Files folder (and tried it elsewhere in the app), but when I run the app, the sqlite file not being copied to the app "package" folder.  I have made sure that the sqlite is "Copied" to the app and checked that the file is in the apps external folder.  I have tested the code using another file in my Supporting Files folder; e.g. "Icon.png" (pathForResource:@"Icon" ofType:@"png") and that file IS found and copied.  I have tried different "ofType" entries, even just @"", and leaving off that parameter to no avail.  I have tried running it with both the simulator and on a device (iPad).

Why is the sqlite file not being copied?
  
    if ([fileManager fileExistsAtPath:filePath] == NO) {
        NSString *resourcePath = [[NSBundle mainBundle]
                 pathForResource:@"mydb" ofType:@"sqlite"];

    NSLog(@"resourcePath:  %@", resourcePath);
    }

2013-08-24 07:46:12.520 WalkGuide4e[29500:c07] resourcePath:  (null)
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: SQLITE file not Being Copied to App Package
      • From: Alex Zavatone <email@hidden>
  • Prev by Date: Re: Xcode 4.6.3 and storyboard zooming
  • Next by Date: Re: SQLITE file not Being Copied to App Package
  • Previous by thread: Xcode 4.6.3 and storyboard zooming
  • Next by thread: Re: SQLITE file not Being Copied to App Package
  • Index(es):
    • Date
    • Thread