fix lldb script on xcode 12 (#464)

Co-authored-by: Uldis Kalniņš <ukalnins@whitecryption.com>
diff --git a/src/scripts/lldb.py b/src/scripts/lldb.py
index 04e6aca..ef10437 100644
--- a/src/scripts/lldb.py
+++ b/src/scripts/lldb.py
@@ -22,7 +22,7 @@
                                             lldb.SBTarget.GetBroadcasterClassName(),
                                             lldb.SBProcess.eBroadcastBitStateChanged | lldb.SBProcess.eBroadcastBitSTDOUT | lldb.SBProcess.eBroadcastBitSTDERR)
     
-    process = lldb.target.ConnectRemote(listener, connect_url, None, error)
+    process = debugger.GetSelectedTarget().ConnectRemote(listener, connect_url, None, error)
 
     # Wait for connection to succeed
     events = []
@@ -42,7 +42,7 @@
 def run_command(debugger, command, result, internal_dict):
     device_app = internal_dict['fruitstrap_device_app']
     args = command.split('--',1)
-    lldb.target.modules[0].SetPlatformFileSpec(lldb.SBFileSpec(device_app))
+    debugger.GetSelectedTarget().modules[0].SetPlatformFileSpec(lldb.SBFileSpec(device_app))
     args_arr = []
     if len(args) > 1:
         args_arr = shlex.split(args[1])
@@ -62,7 +62,7 @@
     envs_arr = envs_arr + shlex.split('{envs}')
     launchInfo.SetEnvironmentEntries(envs_arr, True)
     
-    lldb.target.Launch(launchInfo, startup_error)
+    debugger.GetSelectedTarget().Launch(launchInfo, startup_error)
     lockedstr = ': Locked'
     if lockedstr in str(startup_error):
        print('\\nDevice Locked\\n')
@@ -71,7 +71,7 @@
        print(str(startup_error))
 
 def safequit_command(debugger, command, result, internal_dict):
-    process = lldb.target.process
+    process = debugger.GetSelectedTarget().process
     state = process.GetState()
     if state == lldb.eStateRunning:
         process.Detach()
@@ -84,7 +84,7 @@
 
 def autoexit_command(debugger, command, result, internal_dict):
     global listener
-    process = lldb.target.process
+    process = debugger.GetSelectedTarget().process
     if not startup_error.Success():
         print('\\nPROCESS_NOT_STARTED\\n')
         os._exit({exitcode_app_crash})