xcode instrument problem - ipad

i try to use intrument application from xcode to find out about some leaks in my app, i can use it when i running my app on simulator, but the problem is, when i try to use instrument on running my app on device, it give me warning like this
target failed to run : remote exception encountered : 'Executable 'MyApp' ' is already running as process 97 which was lauched from the 'Xcode Debugger' process
is it something wrong?? i dont know what wrong step i made before, can somebody help me??
thank you

this seems that your app is already running in your device and you are trying to run it again with instrument, try to close your app completely from device and then start it again with instrument.

Related

IOS 11 breaks (ionic) app

I recently updated my IOS to 11 beta 3, to make sure my ionic app would still work.
However it crashes almost right away with a black screen when I launch it.
I try to debug it with Xcode, however when I build to run it on my iPhone and catch the error, the "running on device" gets stuck on the following :
What can I do with this? I'm stuck with an app doomed to die once ios11 gets released, anyone could help?
The problem is normally caused due to wk web view plugin. Try removing the plugin and run again

Swift Playground and Simulator Error (ipc/mig) server died, Unable to boot the iOS Simulator

When I try to do anything in Playground, this pops up before I even finish typing a word.
Error running playground.
Failed to launch iOS stub for playground: The operation couldn’t be completed. (Mach error -308 - (ipc/mig) server died).
and when I just try to run IOS Simulator I get the following error
Unable to boot the iOS Simulator.
oh and this error just popped up
An error was encountered while running (Domain = DTiPhoneSimulatorErrorDomain, Code = 2)
I tried rebooting, I closed out and opened again, I deselected file and reselected. Just keeps happening. Anyone have a solution?
Your firewall is blocking the debugger, you need to allow it to connect:
TCP out 127.0.0.1:63748
Or allow the debugserver process open access (whichever you, or your firewall, prefer(s)).
Upon enabling it, and restarting Xcode everything should work like a charm.
Note/Update:
If you're having trouble finding, or allowing, the debugserver simply try, temporarily, disabling your firewall and restart xcode. Does the playground work? Oh, and don't forget to make sure you've got the assistant view open and the output box showing.
Currently the Xcode 6 beta needs to reside in \Applications for the playground and simulator to work. After you move it there you need to reboot.
This error popped up for me when I closed the simulator before Xcode finished attaching my application to it. Opening the simulator and running the app again solved this problem.

Instruments: Target failed to run: already running on exited process

I quit out of Instruments, the iPhone simulator, Xcode, and unplugged and reconnected my iPhone. I still get the following error.
This first answer below didn't help.
Try to switch off your iPhone and restart it. Sometimes this is the only way to fix a problem with some process being hanged in the debugger, maybe it also works for Instruments.

iOS App crashes when setting breakpoint in Xcode

I have an app I'm developing where setting a breakpoint in Xcode while the app is running causes it to crash. At least I assume it is a crash. There is nothing in the console saying what happened. The app just terminates.
Note that the break point is not being hit, just the act of setting it causes this.
I've developed many apps and this is the first to act like this. Does anyone have any ideas what could be happening or how to figure this out? It is really slowing down my debugging.
I'm assuming you're using Xcode 4.x. Try going into your scheme's settings and switch to a different debugger (GDB if you have LLDB currently set, or vice versa).
If that doesn't work, we need more info:
which version of Xcode and iOS are you using?
does the problem occur in the Simulator or on your device, or both?
have you tried placing a breakpoint in different places in your code?
As far as I can tell, it's a debugger issue. So your app does not actually crash, it's the debug session that crashes which causes the app to terminate. You can observe a similar effect when you hit Stop in Xcode or disconnect your device while an app is attached to the debugger in Xcode.
Might be an issue with mismatching Xcode and iOS versions. Please provide more info about your environment to help diagnose the problem.

iOS - Running app error, unknown error code

When I try to run my app on simulator, it is crash and show error code like below.
Couldn't register com.andikurnia.integraASP.FlipView with the
bootstrap server. Error: unknown error code. This generally means that
another instance of this process was already running or is hung in the
debugger.
Is there anyone can help me with this error. I clean up my code on xcode and build it again, but it doesn't work. :(
I remember that I had similar problem. To fix this you can into nasty way.
Just restart your mac.

Resources