-
Notifications
You must be signed in to change notification settings - Fork 465
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support iOS 7 / lldb #5
Comments
Note that the patch does not apply cleanly, it will have to be manually patched. |
Using your patch I managed to get lldb to execute, but I'm stuck here: [100%] Connecting to remote debug server
-------------------------
run
(lldb) run
Traceback (most recent call last):
File "/private/tmp/fruitstrap.py", line 7, in __lldb_init_module
lldb.target.modules[0].SetPlatformFileSpec(lldb.SBFileSpec(device_app))
IndexError: list index out of range
error: the platform is not currently connected Any pointers to what I might miss? |
I'm seeing this error too. Anyone know how to resolve it? |
Not sure guys, will have to debug the python code :/ (lldb.target.modules is probably null here). Also, a further patch: https://github.com/trigger-corp/fruitstrap/commit/04121e5351669f3c977857795143c04123f1a02f |
I'm getting the following error: (lldb) run |
…rors IndexError: list index out of range)
Can those on this thread check their lldb version? I have a strong suspicion that the lldb support wasn't tested on the lldb that came with Xcode 5. Not sure if the lldb interfaces would have changed in the interim...
On Xcode 5 GM, the lldb version I get is |
I downloaded and ran trigger-corp's fruitstrap, and ran into the same "IndexError: list index out of range" error, so it looks more likely to be an lldb usage issue. |
@eternallam check out my branch referenced above, then we can be on the same page. |
@shazron Thanks for looking into this. |
Confirmed: it only works on Xcode 4's lldb: https://github.com/trigger-corp/fruitstrap/commit/d2378b8d4d3634bcfd29df9999dcc7d5ace77673#commitcomment-4136852 |
@shazron Thanks, now I'm seeing the same error you guys are getting. lldb --version |
More clues, I ran the .py scripts line by line:
|
I attempted to resolve the SDK Path error by replacing line 31 in fruitstrap.c: I verified in the lldb.log and found the 'unable to locate SDK' error seemed to be resolved by this attempt: // lldb.log snippet SBCommandReturnObject(0x7fdccb827880)::GetOutput () => "Executing commands in '/tmp/fruitstrap-lldb-prep-cmds'. Maybe this will help? |
@hcrowell no dice :/ |
@shazron aww :( i'm not sure how to resolve this |
Hi there, Managed to get over the list index out of range using this modified order in prep cmds: platform select remote-ios --sysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/*\n But, am now blocked at launch time, as i get "a process is already being debugged" when calling lldb.target.Launch(lldb.SBLaunchInfo(None),error). Nothing is launched... any help would be appreciated. |
we ended up using the new XCTest framework for now. It can also be used to build and install an app on a device. |
I will still use fruitstrap as i need some features that comes with it. So, here it goes. Managed to work over the "a process is already being debugged" issue, was caused by remaining lldb & python processes. Also, added command line parameters that were actually missing from the patch above. You need to add the following: #define LLDB_FRUITSTRAP_MODULE CFSTR(
#endif//USE_LLDB Hope this helps others. Also, i still have one issue: lldb takes a long time to launch. From the time i get " Process 0 connected" and "(lldb) run" to the time the applications actually starts working, it takes around 1-2 mins. Notice that in this time i get the application displayed on the device, but not updating. |
thanks@thefbiman! will get this integrated. Will work through the issues incrementally I suppose... |
Thanks to @thefbiman. This trick worked yesterday for me as well. However, today the app is not starting on the device anymore. lldb is executing: Yesterday, when it was working, it was executing it in the following order: Any idea how to solve this? Yesterday, when it was still working, I also faced the problem that loading takes 1 min. before the app has been launched on the device. Any idea how to solve that? |
The issue 'working yesterday, but not today' was related that I still had python and lldb processes running. Problem was solved by killing these. Still interested how to decrease the loading time. |
Would also like to figure out how to better end the lldb process after the app finishes running. I know this is related to the sleep timer however I would like the process to automatically quit back to the command line after the process has finished. |
Hello there,
|
When I launch the following : It stucks on "Use 'run' to start the app.". Any way to inject the 'run' automatically ? Thanks |
@micmarcil The run command is automatically injected. Take a look at line 20 of the source. Has anyone else been able to make further headway on this issue? Currently looking for a way to automatically end lldb after the process has finish running. In addition removing the delay would be a great help. |
I just tried out this fruitstrap fork, and it works with lldb: https://github.com/markusjura/fruitstrap |
Version 1.0.4 published with lldb support. |
on xcode 4.7 running ios-deploy 1.0.4 latest i am getting:
|
I also get this error phonegap run ios which used to work fine, till I upgraded xcode to 5.1 and phonegap to 3.4.0-0.19.8 P.S. And phonegap now spits out pages of information when I run that command - it used to be silent. |
Try the newly released 1.0.5 |
Hi, I have this problem to. Would love a solution for this. Cheers |
With iOS 7 / Xcode 5, gdb support has been removed. Support lldb.
The text was updated successfully, but these errors were encountered: