Ok I found my error, when I launched the application with the Terminal, the executable and the data base were at the same place whereas with XCode there were no data base at the place of the executable. The application thus created a data base with the name which I passed in parameter but this DB was empty ;-). Stupid fault which takes time!
Denis Lurkin.