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

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.

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.

Not able to install ipa into iphone

When I try to install ipa into the iphone using itunes,it stuck on "Installing" and application from iphone disappears suddenly.I have read realated QAs but didn't get any help.I have tried installing ipa after changing my bundle Id ,I have cofigured provision profile correctly still not able to install.I am not getting what is the problem.Please help !
Assuming that you have completed all of the steps setting up an ad hoc provisioning profile as listed here, you should now have an .ipa file exported to disk. Instead of using iTunes, try using Xcode. Goto Xcode > Window > Devices and choose your iPhone. Scroll down to the bottom of the app list and press the + button. Choose your .ipa file and click Open. The app will now be installed to your iPhone. Hope this helped :)
To install your IPA into the iphone, your iPhone UDID should must have listed in the device list of your developer account.
IPA should be made through AdHoc Developer profile Or AdHoc Distribution Profile.
Your Phone should have the same or above as deployment target (i.e IOS Version).
Check these steps and try again, hope you will get success.
Thanks

App not running on device (iPhone)

Today, m getting strange problem. My app is not running on device(Jailbreak). Earlier I have run other app on the device. Yesterday, I have formatted device, now application is not running on the iPhone - 4.2.1.
I have added all the required things like provisioning profile. I have also checked in apple developer site. that device is added to that portal.
I have targeted my application to 4.2 as my device version is 4.2.1.
No error is coming when m trying to run the app. only it ends in “finished running app on iphone”.
M not getting where and what m missing..
Reset the Simulator . Delete the Build File. And Restart the xCode. And Run the yor Project.I Hope it will help you.
Go to your project and delete the build folder. Clean all the installed provision profile from device then restart Xcode. Hope it will help you.
Delete the Build File, Reset the Simulator , And Restart the xCode. And than run your project. and got output on device.

Weird error when trying to run a test on device

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

I changed application identifier in app-Info.plist and then I changed it back and can't run it on my device

It runs on simulator but on my device it does not. How can I fix it?
Try deleting the application from the device first. Then clean, build and deploy again.
If that does not work, quit XCode and bring it back up again.
You may also have to open Organizer and check that the device has the provisioning profile that was used to sign the app.