| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • Stop wasting time looking for files and revisions. Connect your Gmail, DriveDropbox, and Slack accounts and in less than 2 minutes, Dokkio will automatically organize all your file attachments. Learn more and claim your free account.

View
 

Moving Dashcode projects to Xcode

Page history last edited by Lee Barney 10 years, 11 months ago

 

 

QC 1.6 beta 5 and later instructions:

 

Creating a Dashcode Project and Moving it into Xcode

  1. Copy the QCDashcodeTemplate.dcproj and rename it with the name for your application.
  2. Design and build all or portions of your application in Dashcode.
  3. Export your Dashcode project to your Sites directory.
  4. Create a new Xcode project by selecting the QuickConnect iPhone Application
  5. Use Finder to copy the files and directories from your exported Dashcode project into the newly created Xcode project directory.  Make sure you allow finder to copy over all of the files and directories in the project.
  6. In Xcode, compile and run your application.
  7. Expand your application to include access to the native behaviors of the device as needed by using the functions in the com.js file.

If you do not want to use Dashcode to create your application all you need to do is to edit the index.html file and include any JavaScript files you wish to use. You should also delete the Dashcode specific directories from your Xcode project.

By the way, any of the existing JavaScript libraries such as JQuery, etc. should be usable with QC not just Dashcode.

 

QC 1.5 and earlier instructions:

 

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.

 

  1. Create your Dashcode Application.
  2. Publish your Dashcode Application to any location of your choice.
  3. Start a new QuickConnectiPhone Application in Xcode.
  4. Delete the following files from the Xcode template:
    1. index.html
    2. databaseDefinition.js
    3. mappings.js
    4. functions.js
    5. main.css
    6. main.js
    7. All files in the Parts and Images directories
  5. 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.
  6. Drag all files in the exported Parts and Images files into the corresponding Xcode groups.
  7. 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.
  8. 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.

    1. 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.

  9. Build and run.
    1. 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.

  1. Create your Dashcode Application.
  2. Create your Xcode Project.
  3. Delete the following files from the Xcode template:
    1. index.html
    2. databaseDefinition.js 
    3. mappings.js
    4. functions.js
    5. main.css
    6. main.js
    7. All files in the Parts and Images directories
  4. Publish your Dashcode Application into a directory of your choice.
  5. Right-click the left pane of your Xcode application and select Add->Existing Files.
  6. Browse to the location you published your Dashcode application to and select all of the files deleted in step 3.
  7. Do NOT check the 'copy' checkbox.
  8. 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.
  9. Build and run.

Comments (0)

You don't have permission to comment on this page.