iOS Unable to Download App at this time

  • 2
  • Problem
  • Updated 4 years ago
  • In Progress
I am completely stumped by this. I have tried building using Phonegap site and with Dreamweaver CS6 and it builds the app no problem just can't install it. See attached.

Photo of Brad Lawryk - Auroratec

Brad Lawryk - Auroratec

  • 11 Posts
  • 0 Reply Likes

Posted 8 years ago

  • 2
Photo of Andrew Lunny

Andrew Lunny

  • 1911 Posts
  • 199 Reply Likes
Are you able to download the app on your computer and install it through iTunes?
Photo of Brad Lawryk - Auroratec

Brad Lawryk - Auroratec

  • 11 Posts
  • 0 Reply Likes
Thank you Andrew,

Yes, I have one I was able to install through iTunes and one I couldn't. The one I couldn't was about a year old - so maybe that would be an issue?

Anyways, I was able to install the one I am currently working on through iTunes. Any ideas why it can't be done with the QR reader?
Photo of Brad Lawryk - Auroratec

Brad Lawryk - Auroratec

  • 11 Posts
  • 0 Reply Likes
Actually, no, it isn't working through iTunes either :-(
Photo of Hardeep Shoker

Hardeep Shoker

  • 1941 Posts
  • 89 Reply Likes
Hey Brad,

This seems like it's a provisioning issue. The easiest way to test it is to download the iphone configuration utility and have a look at the log when you try and install the application.

If the issue is regarding provisioning then you will most likely find a line stating that it's rejecting the mobile provision.

If you're unsure feel free to include the log file here.

Hardeep Shoker
Photo of Brad Lawryk - Auroratec

Brad Lawryk - Auroratec

  • 11 Posts
  • 0 Reply Likes
Thanks Hardeep, I will give it a try
Photo of Andy Wickes

Andy Wickes

  • 13 Posts
  • 0 Reply Likes
Hi,

I have this exact same issue and after about 4 hours I'm totally stumped why I can't get the app to install on my iPhone!

I've recreated my app ID, my mobile provision, and even my developer cert. I've removed and re-added my device and still no joy -

The console within iPhone Configurator says this:

May 8 19:44:17 Andys-iPhone installd[6044] : 2ffd5000 install_embedded_profile: Could not install embedded profile: -402620398

May 8 19:44:17 Andys-iPhone installd[6044] : 2ffd5000 verify_signer_identity: Could not copy validate signature: -402620395

May 8 19:44:17 Andys-iPhone installd[6044] : 2ffd5000 preflight_application_install: Could not verify executable at /var/tmp/install_staging.vjnbSf/foo_extracted/Payload/tweets.app

May 8 19:44:17 Andys-iPhone installd[6044] : 2ffd5000 install_application: Could not preflight application install

As far as I can see the only thing that has changed from when I was recently able to install apps to now is that I have a new iPhone, but I have added that in tthe iOS developer centre as a new device and ticked the device when I create the Distribution Provisioning Profiles so I thought it would be OK!

Please help me! I'm going crazy here!

Thanks

Andy
Photo of Hardeep Shoker

Hardeep Shoker

  • 1941 Posts
  • 89 Reply Likes
I think you've solved this issue in another post (correct me if I'm worng), however as the line states when an error such as:

2ffd5000 install_embedded_profile: Could not install embedded profile: -402620398

occurs it's generally due to an invalid mobile provision. I would suggest checking that the device is on the mobile provision list and that the correct package id was used when building ex: com.phonegap.build or whatever your application id is in the mobile provision.

Hardeep Shoker
Photo of Andy Wickes

Andy Wickes

  • 13 Posts
  • 0 Reply Likes
Hi Hardeep

I'm having the same issue again - I feel like there must be some steps that I am not doing although I feel I am doing everything that your build for iOS page says.

I feel there are a raft of things that need to 'match' - id's and bundle identifiers and the like.

The build is working but it just get's part way through installing and then fails.

I've tried for around 8 hours now and nothing!

Is there a more detailed page showing how to generate certs for iOS and how to build an app.

Thanks
Andy
Photo of Michael Butcher

Michael Butcher

  • 4 Posts
  • 0 Reply Likes
I am receiving the same message part way thru the install when trying to install the iOS version
Photo of Andy Wickes

Andy Wickes

  • 13 Posts
  • 0 Reply Likes
I really think build.phonegap.com could do with an idiots guide to the generating of the certs for iOS - there seems to be an awful lot of people struggling in a similar way to me where the build is fine but the nuances of the certificates and the naming conventions are stopping the install - I seem to go from being able to build with no problem, to nothing but problems.

A video tutorial showing exactly how to create app id's, assign a handset and then create mobileprovision files from phonegap would be great - there are others on youtube I know but these go into more detail than is required and don't cover off vital things like needing to have the bundle id reflected in the config.xml.

How about it guys?
Photo of brunetbaptiste

brunetbaptiste

  • 2 Posts
  • 0 Reply Likes
I definitely want a video tutorial for that ! I'm struggling with these problems too...
Photo of Michael Butcher

Michael Butcher

  • 1 Post
  • 1 Reply Like
My issue was an expired developers certificate. I rebuilt my p12 cert and now it's working.
Photo of Andrew Lunny

Andrew Lunny

  • 1911 Posts
  • 199 Reply Likes
That sounds like a good suggestion Andy - we definitely intend to improve the overall documentation experience of the site. There's a lot to cover!
Photo of Andy Wickes

Andy Wickes

  • 13 Posts
  • 0 Reply Likes
Mine seems to come down to the mobile provision cert - in that when I replace that it often fixes it - although I'm not at all sure what I'm doing wrong in the first instance.

I think there is a connection between this, and either the config.xml or the name given to the app in build.phonegap.com - some things need to match, but either way I'm not getting it and it's causing loads of fails.

Any chance someone could do a 5 minute video showing exactly how this ought to be done - would save me (literally) days of exasperated fails!

Pleeeeease!
Photo of Andrew Lunny

Andrew Lunny

  • 1911 Posts
  • 199 Reply Likes
I think the certificates only care about the app id (specified as the widget id in your config.xml file).

When building apps, we do our best to read the approved IDs from the provisioning profile and build with the right ID, if the one set on the app is not appropriate.
Photo of Andy Wickes

Andy Wickes

  • 13 Posts
  • 0 Reply Likes
Hi Andrew,

Thanks - would you mind humouring me here and posting a few screenshots of exactly where the app id is and where the widget id is in the config.xml.

Just so I can be absolutely sure which two bits need to match.

I've spent so much time failing builds here that this might just be what I need and I'd love to crack it this time around.

Thanks

Andy
Photo of Marriott Perez

Marriott Perez

  • 7 Posts
  • 0 Reply Likes
The certificate needs to be issued by apple and you export it using your keychain acces in mac
Photo of InfoTech

InfoTech

  • 5 Posts
  • 0 Reply Likes
Okay after providing correct Development Certificate & Dev. ProvisionCert. I was able to download on my devices n test.

But now my new build is ready with Distribution & MobileProvision Certificate and I got .ipa file. But when I take this .ipa file build with PhoneGap 1.9.0 to App Store I get 'Invalid Binary' error.
Photo of Hardeep Shoker

Hardeep Shoker

  • 1941 Posts
  • 89 Reply Likes
Alfa,

I've opened an issue relating to you issue here:

https://github.com/phonegap/build/iss...

Your issue is specifically for distribution builds while the above mentioned issue is related to developer builds.

Hardeep Shoker
Photo of Andrew Lunny

Andrew Lunny

  • 1911 Posts
  • 199 Reply Likes
Andy: the widget id is the id attribute on the top-level widget element:


<widget id="com.alunny.whatever" ...
Photo of Tony Martinez

Tony Martinez

  • 1 Post
  • 0 Reply Likes
I had this same issue.... The important thing is to ensure you're App ID matches the ID in you're config.xml file. After I made this change I was able to download and install my app...
Photo of Alex Bogdanovski

Alex Bogdanovski

  • 11 Posts
  • 0 Reply Likes
ARGHHHHHHH
Photo of Alex Bogdanovski

Alex Bogdanovski

  • 11 Posts
  • 0 Reply Likes
This definately needs to be explained better - we're having exactly the same issues
Photo of Linda Larose

Linda Larose

  • 1 Post
  • 0 Reply Likes
I have been fighting with this same issue for two days. The message in the console says that the embedded profile could not be installed. I re-created a new development certificate, new dev profile and new distribution profile. I applied them all to the build settings and created a new ipa. It still will not install on my iPhone (iOS 7.0.3) or my iPad (iOS 7.0.2) if the profile is not already there. When the devices are plugged into my Mac and the profile is there before hand, it will install correctly and run.
Photo of Andrew Clarke

Andrew Clarke

  • 7 Posts
  • 4 Reply Likes
Hi All,

I have not been able to install my app on ios either. App builds correctly, all certificates / p12 / provisioning profiles have been recreated.

AppID's match from apple dev center and phonegap config.xml.

This appears in the iphone config utility console:

: profile not valid: 0xe8008012
: 0x305000 install_embedded_profile: Could not install embedded profile: 0xe8008012
: 0x305000 verify_signer_identity: MISValidateSignatureAndCopyInfo failed for /var/tmp/install_staging.iIWh4r/foo_extracted/Payload/HelloWorld.app/HelloWorld: 0xe8008015
: 0x305000 do_preflight_verification: Could not verify executable at /var/tmp/install_staging.iIWh4r/foo_extracted/Payload/HelloWorld.app
: 0x305000 install_application: Could not preflight application install





Help. I thought this was supposed to be easy. I was able to build an app earlier this year without any issues. Have now come to revisit phonegap by building another app and for the life of me I cannot get it installed. It's just a simple hello world app.

Any help would be appreciated.
Photo of ismael jimoh

ismael jimoh

  • 4116 Posts
  • 192 Reply Likes
Hi Andrew,

This issue seems to be caused by a bad provisioning profile.

Suggest you read through suggested solutions above, check to make sure your provisioning profile has not expired and said device is registered.

Thanks.

Ismael.
Photo of Andrew Clarke

Andrew Clarke

  • 7 Posts
  • 4 Reply Likes
Hi Ismael,

I have re-created everything from scratch, therefore there is no issue with anything being expired. See attached image.

I only have 1 device registered and have checked the UDID a number of times.

Have also been through all the above suggestions without any success.





Looking forward to some more suggestions.

Thanks.
Photo of Andrew Clarke

Andrew Clarke

  • 7 Posts
  • 4 Reply Likes
OK. Looks like I've got to the root of the issue.

The UDID being reported on my phone via apps like UDID sender is not what is being displayed in iTunes. Once I used the UDID from iTunes,regenerated my provisioning profile, uploaded new signing key and rebuilt, the app installed correctly.

Not sure why the UDID sender apps no longer work (maybe iOS7), anyway I'll be using the UDID from iTunes instead from now on.
Photo of Robin Guest

Robin Guest

  • 2 Posts
  • 0 Reply Likes
With hindsight, I can see that the UDID Sender ID (which was in all caps and started with FFFFFFFF) wasn't detected as an iPhone 5s or allocated to the correct section in devices. Thanks for pointing me in the right direction before I tore out my remaining hair!
Photo of Devin Venable

Devin Venable

  • 9 Posts
  • 2 Reply Likes
I want to echo that Andrew Clarke's solution is The Solution. If all else fails, someone probably used UUID Sender, which provides the incorrect id.
Photo of Robin Guest

Robin Guest

  • 2 Posts
  • 0 Reply Likes
Yes, UUID Sender. Ugh!
Photo of Jump Start Marketing

Jump Start Marketing

  • 1 Post
  • 0 Reply Likes
Spent many hours on this and it was the UDID app - thank you!
Photo of Alex Bogdanovski

Alex Bogdanovski

  • 11 Posts
  • 0 Reply Likes
this baffled us for months and we ended up aborting the build
Photo of Gabby Lang

Gabby Lang

  • 1 Post
  • 0 Reply Likes
Hi,

I've re-created the out-dated p12 certificate, tried again- no go, then I've looked into the Provisioning Profile again on Apple Dev and noticed that the new device I was using was missing, added the device, re-generated the Provisioning Profile once and- and Bingo! Worked.