Murugesh Perumal
asked on
Unable to connect to existing Ultralite database in Iphone using IOS SDK
Hi,
I have created an Ultralite db sample Iphone App using Xcode 4.2, Apple IOS SDK 5.0, Objective C and SQL Anywhere 12 version. I am trying to connect the ultralite db in my app. I created 'libulrt.a' file for the simulator and armV6 and armV7 processors. The app connects to the db and retrieves the data when I run it in the simulator.
If I run the same app in the Iphone device, it does not work. It throws the error sqlcode = -954.
–954 The database '%1' was not found
I copied the ultralite dub file into 'Resources' folder of my app. I have written the code to copy this db from the App path to the Documents directory. The database gets copied to Documents directory but unable to connect to this db.
FYI: The Ultralite db has been created using Sybase SQL Anywhere 12 version with Ultralite 12.0.1.3152
The below 2 links will give more information of what we are trying it out.
¿ http://sqlanywhere-forum.sybase.com/questions/8696/need-a-working-example-for-iphone
¿ http://dcx.sybase.com/1200/en/ulc/ulc-iphone-tutorial.html
Is there any solution to come out of this problem? It is blocking my project research and development.
I have created an Ultralite db sample Iphone App using Xcode 4.2, Apple IOS SDK 5.0, Objective C and SQL Anywhere 12 version. I am trying to connect the ultralite db in my app. I created 'libulrt.a' file for the simulator and armV6 and armV7 processors. The app connects to the db and retrieves the data when I run it in the simulator.
If I run the same app in the Iphone device, it does not work. It throws the error sqlcode = -954.
–954 The database '%1' was not found
I copied the ultralite dub file into 'Resources' folder of my app. I have written the code to copy this db from the App path to the Documents directory. The database gets copied to Documents directory but unable to connect to this db.
FYI: The Ultralite db has been created using Sybase SQL Anywhere 12 version with Ultralite 12.0.1.3152
The below 2 links will give more information of what we are trying it out.
¿ http://sqlanywhere-forum.sybase.com/questions/8696/need-a-working-example-for-iphone
¿ http://dcx.sybase.com/1200/en/ulc/ulc-iphone-tutorial.html
Is there any solution to come out of this problem? It is blocking my project research and development.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.