- Home /
How to bring unity sqlite database into Xcode
Hi all,
i have done a project for iphone using unity3d...i'm using sqlite database for ScoreBoard..and its working well in unity..but when i build for iPhone that means into xcode, i couldn't access sqlite database...then,how to integrate unity databse into xcode..i have already tried with openfeint,but i haven't no luck,and no one say the answer for errors..ok please any one give your suggestion if you already work like this..
otherwise if you already worked with openfeint means see this link and give answer me for this error :
http://forum.unity3d.com/threads/826...int-in-unity3d
thank you..i think i'll got answer alteast today..
Answer by MediaPod.du · Jul 19, 2011 at 12:08 PM
Hi, it was tricky for me to find this also. Into XCode :
Create a new group called "Database" for example : Right Click on "Unity-Iphone" > Add > New Group
Add your sqlite file : Right Click on the "Database" group > Add > Existing files
Then Add a Build phase to your build :
Right Click on "Targets" > "Unity-Iphone"
Add > New Build Phase > New copy files build phase
Right click on the new build phase : Get Info
Select Destination : "Resources"
Inside Path : type a folder where you want this file to be placed like : "Data/DB" (it will place the file inside the application folder, inside a sub folder called "DB"
Drag n drop your sqlite file from the group created above to this phase.
When built, the file will be added to your app.
hmm thank u $$anonymous$$ediaPod...after long days i got answer for this question..it seems good...
Answer by Oksana Iashchuk · Sep 11, 2012 at 03:48 PM
please check this: http://u3d.as/content/orange-tree/sqlite-kit/3ka
Your answer
Follow this Question
Related Questions
ZXing for iPhone & UnityiPhone - Bad Access in UnityInitApplication(appPath) 0 Answers
Unity iPhone Build gaining 20MB in Xcode 3 Answers
Exception when including Unity project as iOS framework 0 Answers
How can i use Xcode project to call the function of Unity project 3 Answers
Linking errors in xcode while building unity project 1 Answer