Application installation failed from iTunes - iphone

I changed the version number to a higher version in my iPhone app. When I run the application from XCode, it runs successfully. But When I try putting it on my device from iTunes, installation failed.
Any ideas?

I have gotten this error before. It happened because I signed the build and the IPA with different keys by mistake. You need to be sure the one in your build settings matches the one you use to sign the IPA when you make it from the archive. Also of course they both need to be adhoc certificates,

You need to delete the Profile that is present In settings>General>profiles there delete the profile that belongs to your app also delete the app from the iPhone and download a profile form developer.apple yourAccount then drag and drop on the desktop and double click it and then drag and drop both ipa nad that profile in to the iTunes then sync the app will install now

Related

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

Ad hoc distribution: App failed to install

I have created an ad hoc archive and a .ipa file for the application I am trying to distribute. I have also created a distributing provisioning profile with the UDIDs of the devices that I plan on distributing my application to. When I drag the .ipa and .mobileprovision files into iTunes and try to sync the application to the device, an error message on the phone pops up reading "'myapp' failed to install". By the way, I have a standard iOS developer's license ($99 per year) and am using Xcode version 4.2.1. I am pretty new to the developer program, so please try to keep your answers as simple as possible. Let me know if you need any extra information. Thank you!
I had the exact same issue. My issue was simple to fix. Check your Code Signing Identities for Project & Target in your project Build Settings. Mine were pointing to my Development Profile.
The Code Signing Identities need to point to the Ad hoc Distribution Profile that you created.
Make this change and then recreate the Archive and .ipa file. I then deleted the old App in iTunes, and then dragged the .ipa file onto the iTunes icon (Windows). Then I was able to use iTunes to install the App successfully.
My problem seemed to be Xcode. I had multiple copies of the Ad_Hoc profile with different expirations (all valid) and a few with different names from the days. I deleted them all and the app still failed to install, but I noticed all the Ad_Hoc profiles had been resurrected by iTunes. Tried it several times and including deleting them from the Organizer, but they always resurrected (reappeared installed on the device). Finally I drug out a copy of the supposedly extinct iPhone Configuration utility and used it to delete the app and all Ad_Hoc profiles. Then tried to install just the profile. That got it down to 2. Finally got all deleted and got iTunes to install the right profile. Still took 2 more attempts for iTunes to finally install my archive file!
Check this .
Don't need to drag both .ipa and Provisioning Profile.
Just Drag the .IPA File Follow Further steps as you.
Set install owner param in Xcode project / Deployment to the name you specified in apple dev license. I set both install owner and alternative install owner and Install Group and Alternative Install Group to my name which the 100% exactly as in my apple development license.
And the error was gone.
I was having a similar issue where my project was stored on a secondary NTFS drive. After moving the project over to my desktop [aka MacOS Extended (Journaled) drive], I was able to load the ipa file via itunes.
Another point: If the store version of the app installed on your device (or a version deployed another provision), you have to remove it from your device before installing the ad-hoc version.
I solved the issue by not trying to sync with iTunes but instead to sync it within Xcode (from the window->devices menu)

How to show iPhone app to the client without submitting to the app store (ad-hoc distribution)

I want to show my app to the client without submitting to the app store. I was following the below instructions. But my app doesn't display in iTunes. Could you please help me?
Login to the iPhone developer portal website.
Add their iPhone UDID to the list of devices. Generate a provisioning profile that includes your own test phone and theirs. Download the file (ends with .mobileprovision).
Double-click it to install it on your development machine. Quit and restart Xcode, then set your code signing identity to the name of this profile. Build the binary.
In the left side of Xcode "Groups & Files" bar look for Products (may need to expand the folder).
Select {yourapp}.app. Right click and choose 'Reveal in Finder.' Now take that .app file and the .mobileprovision file you downloaded, zip them both up and send it to the client.
They will need to unzip the archive, then drag-drop the .app and .mobileprovision onto their iTunes and sync the phone. Your app should show up and run.
The portal site has more detailed instructions, but this is basically it in a nutshell.
TestFlight is a great free service to do most of the hard work here for you. Follow these instructions for generating an IPA file and distribute it to whomever you like, without having to go through iTunes.
You still have to follow steps 1, 2 and 3 from your existing instructions.
First create distribution profile using apple developer portal you can follow this tutorial.
http://www.manyfriends.com/wiki/iphone/index.php/Create_an_ad-hoc_provisioning_profile
After installing profile follow this to create a binary that you will send to you client.
http://diaryofacodemonkey.ruprect.com/2011/03/18/ad-hoc-app-distribution-with-xcode-4/

Getting error of installing .Ipa file in to my iPad

I developed an app and created a .Ipa file and sync it with my iPad1 but the problem is, I am trying to sync the same app in to my other iPad2 using iTunes.
But it is not syncing and showing an error that the App can't be installed and installation failed!!!.
There are several reasons for failed to instal in device.
1.check your provisioning profile contains device UDID of ipad2 added or not.
2.check your ipa file created properly or not.if you feel you created properly then delete the app from your first device which is having same app and instal the ipa again and check once.Then you come to know your ipa creation is correct.
3.one more reason might have take place is ipa may break accidentally.
you can check these steps:-
Make sure that your iPad2 device ID is added to your provision profile you have created in developer portal.
Make sure that your bundle id in your plist is match with the your provisioning profile bundle ID you have choose to build your project.
Second thing you can check if the provision profile is installed on your device on not.
Thanks,
Sandeep
This is a free program to check an IPA file for errors, there's over 20 reasons why an IPA file will fail to install, many strange combinations in mobileprovisioning and info.plist files.
CheckIPA

How to install previously-archived apps from xcode organizer to my iphone

Xcode keeps an archive of all the versions of my apps that I've submitted to the app store in the 'archived applications' section. I assumed using this I could install an old version of an app to my device, in order to reproduce any problems my client may have had with that particular version.
However, when I try to do this I get an error:
'this executable was signed with invalid entitlements, the entitlements specified in your applications code signing entitlements do not match those specified in your provisioning profile'
The original app was signed using our App Store distribution certificate, and I use the Organizer interface to re-sign it using our Developer profile.
select the archived app
select the version I want to test
click 'share'
select 'iphone developer' next to identity
save to disk (saves the ipa file)
then copy the ipa to the device using the little + button you see next to 'applications' on the screen you get when you select the connected device.
Then I get the error, and the app isn't installed.
Is there something obvious I'm doing wrong here? Or is there a different process to re-install an archived app to my device?
Edit: Thanks for the answers, I've solved this now. I wrote up the process I used if others want to do this http://pervasivecode.blogspot.com/2011/01/installing-archived-application-to.html
You cannot install an app by dropping it into iTunes when it is signed with the App Store distribution certificate. You need an IPA signed with an Adhoc certificate to do that.
Xcode can resign an archive with the second certificate but I don't think this resigning will overwrite the first certificate. But then, I never tried.