Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deploying iOS apps to /Applications from XCode via build phase script? (Jailbroken)

I'm developing a Cydia app. It's been in development for awhile, and I've never had any problems until recently, when I resumed development after a few months. There are a couple of things that have changed since the last time I worked on it:

  1. Upgraded to Lion
  2. Moved to Xcode 4
  3. Updated to 4.3.5 on my iPad, iPhone to 5.0

From the research I've done, I've come to the conclusion that there was something "unusual" about my old setup. I've discovered that provisioned apps get put in the "sandboxed directory" /private/var/mobile/Applications, and system apps that get read access to the entire filesystem go in /Applications. I guess from using updated tools and Lion, I broke whatever was giving me system-wide read privileges. So, I need information on how to get Xcode to deploy directly to the non-sandboxed system directory.

There are some caveats though. I don't want to have to use an installer, I want Xcode to do it automatically after Build and Run. I also want to be able to have the debugger attached so I can view the console.

Can anyone with experience in this teach me how to use Build Phase Scripts to do necessary magic to take the signed binary and deploy it automatically after each build? I'd imagine this is indeed possible, because console output is such a valuable tool, that it would be too difficult to develop apps like Cydia itself.

Thank you for your help!

like image 333
Daddy Avatar asked Sep 18 '11 20:09

Daddy


People also ask

How do I deploy an app to an iOS device?

Select Window > Devices and Simulators, and then select the Devices tab. Select the attached device. Click the Add button (+) under the Installed Apps section. Select the iOS App file to install the app.

What is build phase in Xcode?

In Xcode, you specify the files and scripts for your target using build phases. The build system then uses that information and other build settings to determine the tasks required to build the target.


1 Answers

The general consensus among the community is that this isn't desirable. A build system like Theos coupled with on device GDB and either a syslog package or deviceconsole is what many are using.

like image 87
rpetrich Avatar answered Sep 30 '22 15:09

rpetrich