Discuss [HowTo] Check why your app is crashing/not saving/freezing... and more at the Free Toolchain Software (Cydia App's) - Hackint0sh.org; For all of you guys with Applications that crash, bug, quit to Springboard, freeze, don't ...
For all of you guys with Applications that crash, bug, quit to Springboard, freeze, don't save files, etc etc...
There is a simple solution to debug and see what's going on.
First, turn off the Auto-Lock feature in Settings > General > Auto-Lock.
Second, you must Install OpenSSH in your Phone (if not already installed by a Jailbreak application).
OpenSSH requires BSD Subsystem.
Open a SSH session from your computer to your phone.
You can use:
- Putty > ssh client for Windows available at putty.org
- Terminal > for OS X, already installed in /Applications/Utilities/Terminal.
Connect to your phone:
x.x.x.x has to be changed to your iPhone IP Address.
To know your iPhone IP, go to Settings > Wifi > click the blue arrow where your phone is connected to.
If you see a message like this just type yes and press ENTER
Then you'll be asked to enter a password. Simply type alpine and press ENTER
The authenticity of host 'x.x.x.x (x.x.x.x)' can't be established.
RSA key fingerprint is xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx.
Are you sure you want to continue connecting (yes/no)?
Now you are connected in SSH.
Since 1.1.3, all the Apps are executed as mobile user from Springboard and because we are logged as root in the SSH session, we need to switch to mobile user.
Type this command and press ENTER.
You'll notice in the SSH session window, the # will change to $.
# = root
$ = mobile
To exit the mobile level simply type exit and press ENTER.
It will go back to the root level.
Now if you want to execute any app you must know its exact name (Case Sensitive).
You can use the "TAB" key to auto-complete the path/name.
For example, if you type:
and press TAB. It will complete to
Type the following command:
X must be changed to the first letter of your app name.
All the applications name starts with a Capital Letter.
When you press tab, if you have several apps starting with the same letter, you'll be proposed several choices. Just complete the entry by the app name you want to execute and press ENTER. (don't forget the .app/ at the end of the name)
Now that you are in the application's package, you must execute its binary.
type this command and press ENTER:
Xxxxxxx must be changed to the same name of your application package name except you don't need to add .app/ at the end.
Your app is now started and you should see several lines right after the last command you typed.
You can copy/paste them in your thread to let people help you.
Use CTRL + C keys to quit the application you started.
Most of the time the report messages are obvious enough to understand the source of the problem.
Since i'm checking every time i install/upgrade a 3rd party application, my phone never crash/freeze/hang or behave abnormally. I just don't keep apps that will report problems that can't be solved.
Last edited by Former Bender; 06-11-2008 at 08:05 AM.
Running apps from Mobileterminal (no ssh) will obviously do the same thing (u can skip a few steps if u got it). that's how I was able to fix customize.
Last edited by spyboy; 06-13-2008 at 03:27 AM.
can i use insomnia or iAwake2??
Originally Posted by XianLi
MacBook Pro OS X SNOW Leopard
iPhone 4 16GB
iPad WiFi 64GB iOS 4.2
BlackBerry Curve 3G (9300)
How do I exit the app after running it? The ssh terminal window is not longer at the command line and the iPhone home button doesn't work!
you should have pressed CRTL + C before exiting the SSH session.
SSH again in the Phone and type top to see what is your application name.
Then CTRL + C to quit top and after you must use killall yourappname to close your app.
Last edited by Former Bender; 06-14-2008 at 07:50 AM.
In 1.1.4 iChess doesn´t save games.
I tried this method, but doesn´t work with this app.
When I start the app (./iChess) in putty, doesn´t appear any lines (but in the iphone the app start, and with contrl+C it stops).
Any more ideas?
Thanks for all
(I always write the same: Sorry for my bad english, I´m Spanish)
Iphone: 8gb [1.1.2. OTB]
Firmware: 1.1.4 (full operative)
Pwned iPhone -> SOLD
Iphone 3g: 16gb [2.0 OTB]
No unlock or jailbreak, using with contract
You must check your app permissions/ownership
It may try to save in /var/root/ instead of /var/mobile/
I will have to try this with Customize 2.0, since it always crashes for me.
iPhone "2G" - 3.1.3 - Jailbroken + iPhoDroid
iPhone 4 - 4.0.2 - Not jailbroken (yet)
Will the above commands fix the camera not saving photos while vWallpaper is installed but disabled?
By apoutwest in forum Installation
Last Post: 07-23-2010, 08:01 PM
By CiscoTM in forum AppleTV 1
Last Post: 03-03-2008, 08:53 PM
By gangster17 in forum iPhone "2G" (Rev. 1)
Last Post: 12-07-2007, 06:42 AM
By itseme in forum General
Last Post: 09-17-2007, 02:02 AM