
There are two known ways to migrate your Dashcode created QuickConnectiPhone application into Xcode for installation on a device. Which one you select depends on how you want to share your application with other developers.
Type 1: Copying the Dashcode source into Xcode. Select this option for easiest sharing.
- Create your Dashcode Application.
- Publish your Dashcode Application to any location of your choice.
- Start a new QuickConnectiPhone Application in Xcode.
- Delete the following files from the Xcode template:
- index.html
- databaseDefinition.js
- mappings.js
- functions.js
- main.css
- main.js
- All files in the Parts and Images directories
- Drag the files listed in step 4 from your published Dashcode application, plus any you may have created, into the resources Xcode group. Make sure the 'copy files' checkbox is selected in the dialog box.
- Drag all files in the exported Parts and Images files into the corresponding Xcode groups.
- Drag all of the files you have copied into the Xcode project from their groups into the Targest->{your application name}->Copy Bundle Resources location. If you forget to do this, images, buttons, etc. will not show up when you run the Xcode application.
-
Do a project global search and replace ( Edit->Find->Find in Project ) forQCiPhone/, Parts/,and Images/. The QCiPhone/ and Parts/ strings can found in the index.html file before the replacement takes place. The Images/ string will be found at least one time in the Parts/PushButton.js file.
-
If you are running 1.5 Beta 3 DO NOT replace the 'Images/' string in the charts.js file. If you do you may not be able to build. I will fix this in Beta 4.
- Build and run.
- If you are running 1.5 Beta 3 make sure you clean all targets before you build and run. If you do not you will get strange crashing behavior. I will fix this for Beta 4.
Here are two videos to help you understand the process. Watch the first and then the second.
DashCodeToXcode1.swf
DashCodeToXcode2.swf
I myself have not used Type 2 described below but this has been done by a QuickConnectiPhone user so I want to present it here. When I get the time, development is heavy right now, I will verify this second process.
Type 2: Using Dashcode source where it already exists. Select this option for easiest modifying and creation of the Xcode project.
- Create your Dashcode Application.
- Create your Xcode Project.
- Delete the following files from the Xcode template:
- index.html
- databaseDefinition.js
- mappings.js
- functions.js
- main.css
- main.js
- All files in the Parts and Images directories
- Publish your Dashcode Application into a directory of your choice.
- Right-click the left pane of your Xcode application and select Add->Existing Files.
- Browse to the location you published your Dashcode application to and select all of the files deleted in step 3.
- Do NOT check the 'copy' checkbox.
- Drag all of the files you have copied into the Xcode project from their groups into the Targest->{your application name}->Copy Bundle Resources location. If you forget to do this, images, buttons, etc. will not show up when you run the Xcode application.
- Build and run.
Comments (0)
You don't have permission to comment on this page.