Is it possible to use gdb in terminal for iOS? - ios5

I am basically from linux background, Once i application is launched in iPhone device, or iPhone simulator, any possibility to use gdb in terminal?

Related

How can I use the Mac iOS Simulator together with Smartface

I want to use the iOS Simulator from a Mac and run the Emulator as stated here: http://www.smartface.io/developer/guides/advanced/debug/
iOS Simulator
The Mac PC which is hosting the iOS Simulator and the Windows PC which is running the Smartface App Studio can communicate directly over TCP/IP.
This is not working.
Can anyone explain me step by step how can this be achieved?
iOS Emulator of Smartface App Studio requires directly USB connection to your Windows PC with your iOS Device in order to make emulation and debug.
You should use real iOS device which is connected to Windows Machine.
For more information :
http://www.smartface.io/developer/guides/tips/ios-emulator-troubleshooting/
http://www.smartface.io/developer/guides/advanced/debug/
http://www.smartface.io/ios-and-android-emulator-on-windows/

How to reboot iPhone/iPod from mac or Xcode

I want to restart an iPod Touch/ iPhone connected to mac mini without touching the device, Is there any way to reboot from Terminal or Xcode or any other way?
You can't. No Public API to do so.
However, if your phone is jailbroken & OpenSSH is installed, you can connect to your phone via SSH, then type:
su
reboot
to reboot your phone.

is it possible to debug other apps in a jailbreak iphone using the gdb in xcode? remote debugging?

is it possible to debug other apps in a jailbreak iphone using the gdb in xcode? remote debugging?
No version of gdb works with ios 6.1...
Which are the other ways to use gdb in ios 6.1?
You have to install debugserver (iphonedevwiki.net/index.php/Debugserver) on your iDevice in order to be able to debug an application remotely.
With IDA's you can attach with "remote gdb debugger" to the debugserver running on the iDevice. I have gotten it to connect with IDA to the debugserver, unfortunatelly this is as far as it goes. Something in IDA's remote gdb debugger is not compliant with sending commands. I think this has to do with this (sourceware.org/gdb/onlinedocs/gdb/Darwin.html) which describes that gdb has to be set up for debugging darwin. IDA doesn't do this and so it doesn't synch correctly with the debugserver that is running on the iDevice. Using the native gnu gdb client works though, but I think it's lack of GUI is tedious and that getting it to work in IDA would be great. You can also connect to the debugserver using LLDB (lldb.llvm.org) which gives you somewhat more control than using gdb.
Hope this helps.
In order to debug iphone apps on ios6, you need to use gdb. im not sure what you mean by when you ask if ida can do that. IDA disassembles an IDA file. to decrypt it, you must crack the app using clutch or rasticrac on iPhone. in order to debug, you have to use GDB. Yes, all of these CAN be done on ios 6.1 jailbroken.
Ida isn't only a disassembler, it is also a very capable debugger. Unfortunately it doesn't seem to be able to remote debug using debugserver.

How should I launch app installed iPhone device by terminal?

I would like to launch app installed at iPhone device from terminal for development and testing.
I watched the below question and answer.
Launching instruments from command line with iPhone simulator
However I am using Mountain Lion and there are no such below file or path.
/Developer/Platforms/iPhoneOS.platform/Developer/Library/Instruments/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate
Would you tell me about how to use such automation launching of Instruments?
I had the very same problem a couple of days ago. Seems that starting from Xcode 4.4 Apple moved it to /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Instruments/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate
But in Xcode 4.5 I didn't find this directory as well. So I continued my search and found tracetemplate file in /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate
BTW, there's a nice shell script which automates running stuff. All you need is to replace INSTRUMENTS_TEMPLATE with a proper path in automation.sh

app built gives success but doesn't launch on my iphone device

Often when i try to run my app on my device it is a success but doesn't launch on my iphone device. Message is Finish running application
I ran through the same problem. A lot of applications were running in the background mode in the device. I restarted the device and killed all the background apps. This time when I ran my app from Xcode it worked on the device.