Skip navigation.
 
mliPhone SDK and sms.db file
FROM : aletemp2002-mail
DATE : Tue Jul 08 16:29:57 2008

Hello,

I hope this is the right mailing list, because I couldn't find anything iPhone-related.

I need to read the sms.db file (~/Library/SMS/sms.db). I need to put the content of the file into a NSData object, so I read the file using [NSData dataWithContentsOfFile: @"~/Library/SMS/sms.db"].
But, when testing in the simulator, it can't read the file.
In the simulator directory, file path is:
/Users/Alessandro/Library/Application Support/iPhone Simulator/User/Library/SMS/sms.db
but it tries to read
/Users/Alessandro/Library/Application Support/iPhone Simulator/User/Applications/E3D91877-8D0A-4186-AD3D-59CAFF694285/Library/SMS/sms.db
This is the path I get also when I try to expand the tilde.

Is it a bug of the simulator? How can I read that file?

Thank you in advance,

Alessandro



      Posta, news, sport, oroscopo: tutto in una sola pagina.
Crea l'home page che piace a te!
www.yahoo.it/latuapagina

Related mailsAuthorDate
mliPhone SDK and sms.db file aletemp2002-mail Jul 8, 16:29
mlRe: iPhone SDK and sms.db file lbland Jul 8, 16:38
mlRe: iPhone SDK and sms.db file I. Savant Jul 8, 17:04
mlRe: iPhone SDK and sms.db file Hamish Allan Jul 8, 17:47
ml[Moderator] Re: iPhone SDK and sms.db file Scott Anguish Jul 8, 19:59