Jan 27, 2009

Moving your code from Dashcode to Xcode



After you have completed your application work in Dashcode here are the steps to move it to Xcode.
1. Publish your Dashcode application - you can publish this to either a directory         or to the web server on your machine. Either way works.
2. Start and name a new Xcode project.
3. Delete the placeholders in the Xcode project.
  1. index.html
  2. main.js
  3. main.css
  4. mappings.js
  5. functions.js
  6. databaseDefinition.js
  7. everything in the Images directory
  8. everything in the Parts directory
5. Add the files from your published Dashcode directory to the locations that the placeholders used to have. Do this by dragging and dropping or by right clicking and selecting Add->Existing Files. You can have Xcode copy the files into your application, this is good if you are sharing it with others, or you can not select the copy checkbox and it will refer to the files in their current location, good if you are going to continue development in Dashcode.
6. If you told Xcode to copy the files you need to do a global search and   replace in Xcode for Images and replace it with a blank string.
7. If you told Xcode to copy the files you need to do a global search and replace in Xcode for Parts and replace it with a blank string.
8. If you told Xcode to copy the files you need to do a global search and replace in Xcode for QCiPhone and replace it with a blank string.
9. Click ‘Build and Go’. If your project is set to use the simulator the app will run there. If it is set to use your device, it will install and run, assuming you follow apple’s instructions for distributing your applications to your device.
I hope this helps.

No comments:

Post a Comment