Unable to download application

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
wolfkillshepard
Posts: 44
Joined: Tue Jul 12, 2011 7:43 pm

Unable to download application

Post by wolfkillshepard » Tue Jul 17, 2012 6:47 pm

Hey Livecode community, its been a while since I've posted here!

When I try to install my application I am getting this error:

"Unable to download application
'My app' could not be installed at this time."

I can't install a build thru either xcode or testflight. The issue isn't that I'm not using an ad hoc build, or that I am uploading it directly to my phone or testflight incorrectly. Anyone have any ideas as to what my cause this error message?

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Unable to download application

Post by Mark » Tue Jul 17, 2012 6:57 pm

Hi,

What exactly are you doing when "downloading" and installing that app? Where are you downloading from? Can you be more exact about at which point you see those errors? Can you post a screenshot of your screen with the error messages?

What makes you think that the issue isn't that you're using an ad-hoc build, uploading directly or using testflight (incorrectly)?

Do you have an Apple developers account for iOS?

Kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

wolfkillshepard
Posts: 44
Joined: Tue Jul 12, 2011 7:43 pm

Re: Unable to download application

Post by wolfkillshepard » Tue Jul 17, 2012 7:19 pm

Thanks for the reply Mark,

When I'm downloading and installing the application I am either installing a build from testflight that I uploaded or syncing to build to my phone with itunes.

I see the error message about 80% thru the progress of the install

http://i.imgur.com/i8860.png

I know that it's not the ad-hoc build because I have two correctly configured provisioning profiles for both distribution and for development tied to the application, when I build for testing on my device (thru testflight and itunes) I am sure to be using the distribution build. When I build the .ipa for distribution I am following the same method that I have used for a long time and that has always worked for me in the past-

"File/Save as Standalone Application..."
Change the folder name from "myapp" to "Payload"
Compress the file
Change filename from "Payload.zip" to "myapp.ipa"
Upload that "myapp.ipa" as a build in TestFlight-

I do have an apple dev account for iOS as well as the latest SDKs and Xcode.

The last time I was able to install a build on the device was prior to livecode 5.5

I hope this info helps

wolfkillshepard
Posts: 44
Joined: Tue Jul 12, 2011 7:43 pm

Re: Unable to download application

Post by wolfkillshepard » Tue Jul 17, 2012 9:21 pm

Right now I am going through and removing the provisioning profiles from both the mac as well as the devices I am trying to test on, then I will recreate them. Hopefully this solves the issue.

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Unable to download application

Post by Mark » Tue Jul 17, 2012 10:03 pm

Hi,

I'm pretty sure you do something wrong when preparing your file for Testflight, but I don't use Testflight and can't say exactly what it is. Usually, that "Payload" thing is hidden in an installer package and isn't a standalone. I think that the IPA should have the name of your app and not be named Payload or something like that.

As to XCode, you can simply drag the standalone app onto the iPhone icon in the Organizer window of XCode. It is really very simple. You could also drag it into iTunes. It should install just like that. If this doesn't work, please tell me exactly where it goes wrong and which error messages you see.

Kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

wolfkillshepard
Posts: 44
Joined: Tue Jul 12, 2011 7:43 pm

Re: Unable to download application

Post by wolfkillshepard » Tue Jul 17, 2012 10:18 pm

I know that it seems jank but that's the method that test flight uses. I don't think the issue is testflight or xcode, even building to the phone the way you just mentioned using xcode and itunes brings me the same result. The error message appears after 80% of the download has progressed, the icon always reads as "waiting" never makes it to "install". I'm confident that the issue inst related to the provision profiles or dev profile because I have redone that process multiple times trying different methods and the proper instructions with the same result.

The exact verbiage of the error message reads as:

"Unable to download application
'My app' could not be installed at this time."

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Unable to download application

Post by Mark » Tue Jul 17, 2012 10:29 pm

Hi,

No, wait. Forget about Testflight completely, for a moment. Just install your app on your iPhone without Testflight. Once that works, you can try using Testflight again.

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

wolfkillshepard
Posts: 44
Joined: Tue Jul 12, 2011 7:43 pm

Re: Unable to download application

Post by wolfkillshepard » Tue Jul 17, 2012 10:38 pm

Where I use testflight or not, it's still the same result. In fact I haven't been using testflight for my further tests at all. I'll keep researching the issue and messing around. I guess if I come up with anything I'll post here.

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Unable to download application

Post by Mark » Tue Jul 17, 2012 10:45 pm

Hi,

So, you're saying that when you drag your app onto the iPhone icon of XCode's Organizer window, the app installs successfully, but when you start the app on the iPhone, it says it can't be downloaded?

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: Unable to download application

Post by jmburnod » Tue Jul 17, 2012 10:55 pm

Hi,

Sorry if i dont understand but i readed
Compress the file
Change filename from "Payload.zip" to "myapp.ipa"
Upload that "myapp.ipa" as a build in TestFlight
in the second message of wolfkillshepard
If i understand the standalone is compressed.

Best regard

Jean-Marc
https://alternatic.ch

wolfkillshepard
Posts: 44
Joined: Tue Jul 12, 2011 7:43 pm

Re: Unable to download application

Post by wolfkillshepard » Wed Jul 18, 2012 5:10 pm

Mark wrote:Hi,

So, you're saying that when you drag your app onto the iPhone icon of XCode's Organizer window, the app installs successfully, but when you start the app on the iPhone, it says it can't be downloaded?

Mark
Hi Mark,

It crashes prior to to being installed on the phone. As of this morning we were able to get the app to build to one of our phones but none of the others (all phones are 4S's, 2 are running iOS6 and 1 is running the latest iOS5). The phone that was able to install the application is one of the iOS6 ones.

The app is successfully installing with all the previously mentioned methods (testflight, xcode, itunes) on the iOS6 4S but no other device will install correctly. This is very puzzling to me but I will update when I have more info as we continue to mess with this.

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Unable to download application

Post by Mark » Wed Jul 18, 2012 5:23 pm

Hi,

I think you are talking about Testflight again. If you don't want to try this with XCode first, then maybe someone else can help you better than me, as I don't use Testflight.

Kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7389
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Unable to download application

Post by jacque » Wed Jul 18, 2012 5:35 pm

wolfkillshepard wrote:Hey Livecode community, its been a while since I've posted here!

When I try to install my application I am getting this error:

"Unable to download application
'My app' could not be installed at this time."

I can't install a build thru either xcode or testflight. The issue isn't that I'm not using an ad hoc build, or that I am uploading it directly to my phone or testflight incorrectly. Anyone have any ideas as to what my cause this error message?
This happens when your app has finished downloading but has not passed Apple's validity check. Generally that means the app hasn't been signed properly. The error is a little erroneous -- it really has finished downloading. It just isn't certified to run on that particular device.

The question is part of a troubleshooting page on my site (scroll about halfway down.) It's for AirLaunch, but this question applies to any installation:

http://www.hyperactivesw.com/airlaunch/ ... htips.html
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

wolfkillshepard
Posts: 44
Joined: Tue Jul 12, 2011 7:43 pm

Re: Unable to download application

Post by wolfkillshepard » Fri Jul 20, 2012 6:35 pm

jacque wrote:
wolfkillshepard wrote:Hey Livecode community, its been a while since I've posted here!

When I try to install my application I am getting this error:

"Unable to download application
'My app' could not be installed at this time."

I can't install a build thru either xcode or testflight. The issue isn't that I'm not using an ad hoc build, or that I am uploading it directly to my phone or testflight incorrectly. Anyone have any ideas as to what my cause this error message?
This happens when your app has finished downloading but has not passed Apple's validity check. Generally that means the app hasn't been signed properly. The error is a little erroneous -- it really has finished downloading. It just isn't certified to run on that particular device.

The question is part of a troubleshooting page on my site (scroll about halfway down.) It's for AirLaunch, but this question applies to any installation:

http://www.hyperactivesw.com/airlaunch/ ... htips.html
Thanks Jacque, this is very helpful in my troubleshooting. I'm going to play around with that info and hopefully figure something out.

Post Reply