Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Compile directly to /Applications from Xcode

First off, I am not publishing this app to the app store and this is a jailbroken phone.

Anyone know how to compile apps directly to the /Applications folder with Xcode? Currently, I am having to compile to the /var/mobile/Applications folder and copying it to the /Applications folder on the device. It would be very convenient if the app could be compiled directly to the /Applications folder. Google doesn't seem to have any results on this topic.

Thanks in advance...

like image 535
WakeTurbulence Avatar asked Feb 01 '26 07:02

WakeTurbulence


1 Answers

I don't have a jailbroken iPhone, so I can't say if this works, but presuming you can mount the iPhone as a volume on the Mac, you can add a custom script to the compilation in Xcode that does the copying for you.

Presuming that your iPhone is mounted in /mnt/My iPhone

You would add a custom build phase (Editor > Add Build Phase > Add Run Script Phase) and the script would do something like:

cd /var/mobile/Applications
cp myappfile "/mnt/My iPhone/Applications/"
like image 162
Kalle Avatar answered Feb 03 '26 20:02

Kalle



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!