1

Is it possible to directly compile ios apps from Xcode directly into the /Applications folder and get root access? Yes, my iDevice is jailbroken. I need to have root access to correctly work with my app.

Caleb
  • 124,013
  • 19
  • 183
  • 272
David Gölzhäuser
  • 3,525
  • 8
  • 50
  • 98

2 Answers2

0

You can put the app into /Applications manually (using SSH/iFile/another explorer), and make it run as root in a few steps :

  • In your YourAppName.app folder, rename the executable, originally named YourAppName, into something else

  • Then create a file named YourAppName, edit it and type the following :

#!/bin/bash
dir=$(dirname "$0")
exec "${dir}"/YourRenamedExecutable "$@"

When you'll run the app, the little script above will be run and launch your app as root

Cl3ment
  • 155
  • 4
0

I believe you can do this if you install the iOSOpenDev toolset, which gives you a customized Xcode installation.

iOSOpenDev uses Xcode build phase scripts to install your app (bundled as a .deb package) on the device. It should install it under /Applications/ by default.

Read more here

Note: just because your app is installed in /Applications/, it will not automatically have root privileges.

Community
  • 1
  • 1
Nate
  • 31,017
  • 13
  • 83
  • 207