Skip to main content
Inspiring
December 13, 2011
Question

itunes sync 'AppName' failed to install.

  • December 13, 2011
  • 21 replies
  • 44686 views

I dont understand why i get this sometimes when trying to sync an app to my device (message shows on device itself)

certain provisioning profiles just dont work. I will usually fumble around, creating new ones until i get one to work.

The latest attempt:

I created the provisioning profile on the iOS developer site.

I included 2 udids.

downloaded

I created the app, it works on one device, but not the other

itunes sync 'AppName' failed to install.

ok, let me test again,  so i go create a new profile for just one UDID (the UDID that was working a moment ago)

itunes sync 'AppName' failed to install.

What!!! WHY!

Its like some profiles are corrupt or something? What can i be missing here?

for one example, both udids are in the profile, why would the .ipa install on one, but not the other?

(installing from 2 different comptuers)


This topic has been closed for replies.

21 replies

August 24, 2012

I want to add my adventure with this message in case someone had the same problems. I had a problem with testing in-app purchases on an iphone 4. The problem was that the device was jailbroken. I updated to iOS

5.x. After the update, when I tried to install the application, I got this annoying message, but only when I tried to compile with adt.

When I was compiling from inside the flash builder everything seemed to work fine, but I could not test extensions. The problem was that when I was opening the myapp-app.xml from inside flash builder everything seemed ok and the app <id> was in the form of com.mycompany.myapp.

But when I opened the myapp-app.xml with a text editor, the app <id> was in the form of com.mycompany.myapp.debug.

This debug thing messed everything up. As soon as I removed manually the .debug surfix everything worked ok.

Known Participant
August 10, 2012

Another thing to look out for...

Simply double click your provisioning file to see if it expired

Participant
May 25, 2012

We had the same error msg when using a Development Provisioning Profile.

Using FlashDevelop we followed the steps of Emanuele Feronato at http://www.emanueleferonato.com/2011/09/22/creation-of-an-iphone-app-with-flash-and-without-a-mac-for-all-windows-lovers/ although some of the file names are as of now inaccurate.

We also got the "itunes sync 'AppName' failed to install" msg.

It turns out that the Bundle Identifier (App ID Suffix) was incorrect from the application.xml file we used in our FlashDevelop project.

We were missing the 'air' at the start of the ID.

We had at our App ID Suffix written only se.domainname.appname and once we changed the App ID Suffix to match the ID tag in the xml it worked, ie we changed it to air.se.domainname.AppName (and at the same time used the correct camelcasing).

With a new profile it worked like a charm after that  :-)

Participating Frequently
April 4, 2012

ok I got it working.. my problem (I think) was that I was using the same .csr for the development and distribution certificates, you need to make a new .csr for each. ad hoc works and the app is off for review.

Inspiring
April 4, 2012

I've run into this issue a number of times during development. It is really agravating as it is not intuitive where the problem lies, but has always been solvable. This typicallly happens to me when I try to add a new device for testing.

This is what I do that seems to work for me:

- First you have to update ALL of your mobile provisioning files through the Apple Member Center site to include your new device (debug, ad hoc, release, etc). If you miss updating any one of these your app may end up failing to install. Then download all the new files.

- You need to manually delete any old provisioning files that are associated with iTunes. Simply dragging the new files onto iTunes doesn't always seem to work for me (I think this is what causes the problem for may people). Instead on Mac navigate to ~user/Library/MobileDevice/Provisioning Profiles/ and delete the old *.mobileprovision files that you are trying to replace. Manually copy the new mobile provisioning files into this folder to replace the old ones. I'm not sure where the corresponding folder is located in Windows.

- Remove the old profile(s) from your iOS device. Go to: Settings->General->Profile. Select the Profile(s) and then Remove.

- Rebuild your app using the new mobile provisioning files.

- Drag your new ipa file onto iTunes to replace the old ipa file.

- Now sync again with iTunes.

Hopefully that will get you back up and running again.

Participant
April 27, 2012

I ran into this issue and the problem was that I had changed the <id> and <filename> tages in the xml file.

For some reason this did not cause a problem on an iphone 4s, but did prevent it from being installed on the 3gs. When I changed them both back, it worked on the 3gs as well.

Participating Frequently
April 3, 2012

getting the same problem as well.. The app is working great with the ios_development.p12 and the development mobileprovision when I debug, but when I change to the ios_distribution.p12 and ad hoc mobileprovision (all created at the same time in the portal) it says "app failed to install" on all devices I have set under Devices and work with the developer version.

I'm using Flash Buider 4.6 and Air 3.2 (did the same with 3.1), the devices are a iPhone 4, iPod Touch and a 3GS.

Want to get this submitted asap, any help is most appreciated

Inspiring
April 3, 2012

For what its worth (probalby not much) I was never able to test my distro.p12 compiled apps on my devices I just kinda winged it and sent the binarys to Apple hopeing I didn't goof up packaging the final version.. probably not what you want to hear...

Participant
February 27, 2012

I've got the same problem, my ID on the descriptor file is same as my Bundle ID but still it failed to install. Any ideas?

Thanks

swfisgoodAuthor
Inspiring
December 13, 2011

windows7

flash cs5.5

Air3.2.0.1320 beta

itunes 10.5.2.11

ipod4 iOS 5.0

iphone4s  iOS unkown at this time

One provisioning profile had 2 Udids selected. I downloaded and used that provisioning profile.

I am able to sync it to my ipod4th gen with itunes 10.5.2.11

The second device (which denied it) is iphone4s, and the person i am giving it to is also using itunes -version unknown at this time-

I would say its something with the iphone4s or her itunes, but i was also getting the same error here with some of the provisioning profiles.

I just noticed now that all the profiles i have tested on the device show "verified" on the device, the app just didnt install many of the times.

I think it is something stupid on my part, perhaps the app ID in the provisioning portal?

I just switched it to a different app ID (I have a few app IDs listed, all from testing) and now it works again on the one device (ipod).

I can try other tools, but the  beta testers sent file via email will most likely want to use itunes only

swfisgoodAuthor
Inspiring
December 13, 2011

To be clear about it, if i have a profile that works, it always works. It's not as if it fails to push to the device sometimes. It seems the profiles themselves are  the cause.

swfisgoodAuthor
Inspiring
December 13, 2011

swfisgood wrote:

To be clear about it, if i have a profile that works, it always works. It's not as if it fails to push to the device sometimes. It seems the profiles themselves are  the cause.

that comment was wrong, now i am unable to sync the same ipa files that were working a moment ago.

I think it's craptacular itunes + iOS5

Colin Holgate
Inspiring
December 13, 2011

You can expand IPA files and take the app file that is in the payload folder, and drag it straight to your device in the Organizer window of Xcode, without involving iTunes.

What was the second device? If it was an iPhone, iPhone 3G, iPod Touch 1st or 2nd generation, or a 3rd generation 8GB, then AIR apps won't work on them.

December 13, 2011

Hi:

Are you installing through iTunes, or xCode? What is your iOS version? Can you also post the versions of all the tools you are using?

Colin Holgate
Inspiring
December 13, 2011

"iTunes" was in the subject, so I took it that he used iTunes.