Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

spilakalb

macrumors member
Original poster
Sep 23, 2012
40
0
Anybody know how to use Jailcoder for running ios apps in jailbroken iPhone.I am using xcode4.2 and ios5
 
Anybody know how to use Jailcoder for running ios apps in jailbroken iPhone.I am using xcode4.2 and ios5

Don't know about Jailcoder

But what I do, is I compile the app without codesigning.
Then I open the terminal and cd into the app folder

Code:
cd /directory/to/yourapp.app

Then I run ldid and chmod 755 on the app

Code:
ldid -S yourapp
sudo chmod 755 yourapp

of course it requires that you install ldid, which is available lots of places, chmod is already installed in Mac and Linux.

Then having SSH installed on the phone i copy it over using scp, remember to stepp out of the app folder first. And you use -r (as in recursive) as an option in scp to copy the whole folder.

Code:
cd ..
scp -r yourapp.app root@<your.phones.ip.address>:/Applications

it will promt you password on the phone, which is alpine as default, you should change that :)


EDIT:
a one-time only, you need to edit a settings file in Xcode to allow compiling with unsigned as selected.
With the newest Xcode installed, this should be something like
open Applications on your Mac, right click Xcode and Show Package Contents
go down these folders
Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk/
and open SDKSettings.plist
under DefaultProperties, change CODE_SIGNING_REQUIRED to NO
Everything is case sensitive.
 
Last edited:
To make a deb package (writing this out of memory anybody say if you see mistakes)

make a folder on your iDevice for messing around. I usually SSH into my iDevice and make a /DEB folder.

Code:
ssh root@<your.phones.ip.address>
mkdir /DEB

now cd into that dir
Code:
cd /DEB

and we need to make a directory structure for your deb file, this is easy. The key folder here is Applications if your app is a program, and something else if not.

Code:
mkdir Yourappname-version
mkdir Yourappname-version/Applications
mkdir Yourappname-version/DEBIAN

now make the control file, guessing you have nano installed, if not get it :)

Code:
nano yourappname-version/DEBIAN/control

the control file should look something like this:

Package: com.companyname.yourappname
Name: Yourappname
Version: 1.0
Section: Applications
Depends:
Architecture: iphoneos-arm
Description: Your description here.
Author: your name or nick <youremail@gmail.com>
Maintainer: your name or nick <youremail@gmail.com>

exit by pressing control+X and press y to save or something.

now we need to jump back to the computers command line, copy the app over, and go back into the idevice. There are of course other ways to achieve the same thing, but this is simpler to explain.

Code:
exit
cd /directory/to/yourapp
scp -r yourapp.app root@<your.phones.ip.address>:/DEB/Yourappname-version/Applications
ssh root@<your.phones.ip.address>
cd /DEB

enter password when asked for

now you can build the app with en easy command

Code:
dpkg-deb -b Yourappname-version

now you have the deb file, optionally you can remove the directory you made in the start of this guide

Code:
rm -rf Yourappname-version


NOTES:
everything is case sensitive
other ways of copying than scp might make weird files in all or some directories, these might mess up the deb file (yes I know they actually dont, but installing multiple different deb files with these weird files can result in error)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.