Skip to content

Convert to iOSOpenDev Project

kokoabim edited this page Nov 22, 2012 · 23 revisions

To convert an existing non-iOSOpenDev project to an iOSOpenDev project, there are three (3) areas of focus:
1. Build Settings: iOSOpenDev specific build settings.
2. Project Navigator: folders and a file for building the Debian package.
3. Build Phases: build phases to compile the target and build the Debian package.

Convert to iOSOpenDev

Build Settings

Project level build settings

  • Code Signing Identity: Don’t Sign Code
  • iOSOpenDevPath: /opt/iOSOpenDev

Target level build settings

  • iOSOpenDevBuildPackageOnAnyBuild: NO
  • iOSOpenDevCopyOnBuild: NO
  • iOSOpenDevDevice:
  • iOSOpenDevInstallOnAnyBuild: NO
  • iOSOpenDevInstallOnProfiling: YES
  • iOSOpenDevRespringOnInstall: YES
  • iOSOpenDevUsePackageVersionPList: NO

Screen Shots

What the Build Settings should look like in Xcode:
Build Settings: Code Signing Identity
Build Settings: iOSOpenDev

Project Navigator

1. Create a Package directory in the target’s directory.
2. Create a DEBIAN directory in the Package directory.
3. Create a control file in the DEBIAN directory.
4. Create a Applications directory in the Package directory.
5. Drag-and-drop the Package directory from Finder to under the target’s Project Navigator group in Xcode.
6. Copy-and-paste the following text into the control file:

Package: com.yourcompany.MyApp
Name: MyApp
Version: 0.1-1
Description: 
Section: System
Depends: firmware (>= 5.0)
Conflicts: 
Replaces: 
Priority: optional
Architecture: iphoneos-arm
Author: Your Name
dev: 
Homepage: 
Depiction: 
Maintainer: 
Icon: 

7. Make sure that two (2) extra blank lines are at the end of the control file.

Screen Shots

What the filesystem should look like in Finder:
Finder Items

What the Project Navigator and content of the control file should look like in Xcode:
Project Navigator

Build Phases

1. Remove the control file from the target’s Copy Bundle Resources Build Phase list.
2. Add a new Run Script Build Phase for the target that runs:

/opt/iOSOpenDev/bin/iosod --xcbp

Screen Shots

What the Copy Bundle Resources Build Phase list should look like in Xcode while selecting the control file. Afterwards, click on the minus (-) symbol below:
Copy Bundle Resources Build Phase

What the Run Script Build Phase should look like in Xcode:
Run Script Build Phase

Clone this wiki locally