Weird error when trying to run a test on device - iphone

For almost a week i'm getting this weird error when i'm trying to run the app on my idevice.
the error is that:
error launching remote program: failed to get the task for process 10492
It's important to say that I get this message on Xcode, the app quites on the idevice, but right after I can run it by clicking on the app icon and it works just fine with the latest updates.
what seems to be the problem?
Thanks alot!

The problem is that you have set the build configuration in Release mode, and installing the application in device through Xcode. If you want to debug the app, then you should go to Edit scheme, and choose Debug mode. Also, make sure, you have a developer profile, and that you are building with that developer profile. Then, when you try to install the app through Xcode, you will see the app getting installed. Hope that helps!

GDB is having trouble attaching to the device process. Have you tried restarting the device?
If this is a permanent issue and you have an Entitlements.plist file have a look at this.

Please check your certificates. If you are signing with distribution certificate then you will not able to debug. To debug you have to have provision certificate
Hope this will help

Related

Xcode shows popup but there is no errors

Working with my application It goes well but has met into a problem with Xcode. When I try to run the application on the iPhone simulator this message always pops up:
"A coordinated app install already exists for com.apk.ios with intent IXCoordinatorIntentUpdating (creator InstallCoordination Simple SPI) but request by CoreSimulatorBridge (pid 677) was for intent IXCoordinatorIntentInitiating"
What is wrong? There are no errors when trying to build the app. Has tried to clean the build.
Erasing all content and settings is not always necessary as #user3344236 stated.
Please make sure to delete the app that you are trying to install from the iOS Simulator. That'll probably solve your problem.
Why this occurs?
In my case something went wrong while Xcode is trying to install the app on the simulator. Everything is frozen and I had to restart the Mac manually.
Found a solution that works for me:
Reason:
Either the App store or something else tool is downloading the same app with the same identifier at the time Xcode is trying to launch the same app on the Simulator or on MAC.
Solution:
Need to stop/delete all the running installs of the app with the same identifier. (How to stop -> that can be figured out to see either App Store or any other tool ) Then try again to launch the app with Xcode, this time it succeeds.
No need to Reboot the simulator/ Mac or reinstall Xcode.
Thanks, Hope this will help someone.

Error launching remote program

I am new to iPhone application. i just started with xcode. My problem is: I have created an app using xcode & phonegap, it's running without any problem in simulator but when i try to test it on my iPad it throws an error.
Error launching remote program: failed to get the task for process 6074.
i dont know why this happens. i have searched it on StackOverflow but its kind of confusing (as i am new in iPhone app.)
please help me where i goes wrong & how can i solve this?
Application also open. After the application launched completely, after few seconds I got this error. after that My Application get crashed.
One more thing.
if i delete my old application then it reinstall it but it throws same error. but if i open that installed application then it will be my updated application.
The problem is because you are trying to debug your application using distribution provisioning profile. If you want to run your application in debug mode, you have to sign it with development provisioning profile and certificate (both in build settings and in target). If you are trying to create a distributable, sign it with distribution credentials and add Entitlements.plist (again both in build settings and target).
That’s because you put the get-task-allow = NO entitlement into ad-hoc builds, to stop your beta testers from being able to run the app in a debugger.
"Error launching remote program: failed to get the task for process"

Getting message 'could not launch application' while launching the application

I have created the .ipa file of the application. I have installed it the device via iTunes. It is getting installed on the device but when I launch the application it shows the message "Could not launch application". I have added the deviceId to provisioning profile. Please give me some suggestion on this.
This happens to me some times but it just couldn't launch the app when I get onto my device and scroll over to the screen where the app would be it is there and if I manually launch it on my own it still works... I don't know what causes it, I wish I could help.
Delete your same previous application from iPAD, Now delete all profile and install fresh copy of your application. i hope it seems working....
Same problem i got while creating iPA file. I have solved issue in this way.
First of all check you have previous build in your device. Then you need to relaunch your xcode, build and clean your project using CMD+SHIFT+K then create iPA file and try to install in device. Make sure that you have deleted all previous instances of application and if possible then restart your device. One more thing check same provisioning profile is available in your xcode through Organizer.
This works fine for me.

Error from Debugger: The program being debugged is not being run

Please dont mark this as duplicate
I am getting this error while debugging my app on device I tried everything from these posts (see below) but no luck -
iPhone SDK- Error from Debugger: The program being debugged is not being run
XCode fails to run app on device, saying the program being debugged is not being run
Can I not run two app with the same build identifier? I use one identifier yesterday to debug one app. Now I am using the same identifier to debug another app on device.
I have tried following -
1) restart mac and iphone
2) reinstall the provision profile (both from xcode and itunes)
Please help!
You can run two app with the same build id. Are you using a distribution profile or development profile?
OK... I got it!
I have to remove the previous app from xcode organizer. Its working now!!

error from debugger :error launching remote program

I am getting this error while running my app on the device.I have installed the distribution provisioning profile.
error from debugger :error launching remote program: failed to get the task from process 1637
Thanks
I came across this question while searching for an answer myself. I figured my problem was I was trying to launch and debug my app from xCode using the Ad-hoc provision rather than the developer 'Debug' provision. xCode would build and copy the app to the device but wouldn't debug.
I just changed the Active Configuration to Debug and the problem was solved. A silly mistake really.
I have two suggestions:
1) Quit simulator and xcode completely. Then start back up.
2) If you can run other projects OK, but not this particular project, it could be something wrong with your projectname.xcodeproj folder.
I spent hours trying to fix a similar problem. I started picking apart changes from subversion and was "diffing" each and every file to find a "breaking change". Finally, I just deleted the entire folder and then restored it from SCM and everything was fixed.
Quit xcode and restart again works for me...