Note that there are some explanatory texts on larger screens.

plurals
  1. PORunning multiple lldb processes in parallel
    primarykey
    data
    text
    <p>I am trying to execute an iOS app on multiple physical devices in parallel. In the past (XCode 4.3 and iOS 6) I accomplished that with fruitstrap, which used the gdb debugger (iOS 6.1.3 and lower). With XCode 5 Apple removed the <a href="http://www.sourceware.org/gdb/" rel="nofollow">gdb debugger</a> and replaced it with the <a href="http://lldb.llvm.org/" rel="nofollow">lldb debugger</a>.</p> <p>I refactored my fruitstrap script that it works with the lldb debugger. However, a execution of multiple lldb processes in parallel is not possible. I get the following error message in the lldb console:</p> <pre><code>(lldb) run error: a process is already being debugged </code></pre> <p><br> I can see in the [apple source code}(<a href="http://www.opensource.apple.com/source/lldb/lldb-76/source/API/SBTarget.cpp" rel="nofollow">http://www.opensource.apple.com/source/lldb/lldb-76/source/API/SBTarget.cpp</a>) that they are allowing only one process at a time:</p> <pre><code>if (sb_process.IsValid()) { state = sb_process-&gt;GetState(); if (sb_process-&gt;IsAlive() &amp;&amp; state != eStateConnected) { if (state == eStateAttaching) error.SetErrorString ("process attach is in progress"); else error.SetErrorString ("a process is already being debugged"); sb_process.Clear(); return sb_process; } } </code></pre> <p><br> <strong>Questions</strong></p> <ul> <li>Does anyone figures out how to run multiple lldb processes in parallel?</li> <li>Is there any other tool which can launch an iOS app on multiple physical devices in parallel, which is iOS 6 and iOS 7 compatible and can be executed via the command line? (<a href="https://developer.apple.com/technologies/tools/" rel="nofollow">XCTest</a> works only for iOS 7, <a href="https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/instruments.1.html" rel="nofollow">Instruments</a> don't accept multiple processes in parallel, <a href="http://www.libimobiledevice.org/" rel="nofollow">libimobiledevice</a> used in the past gdb as well)?</li> </ul> <p>Any help or thoughts appreciated :-)</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload