Issue with uploading zip file

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
jnmediaGAd195
Posts: 58
Joined: Mon Dec 05, 2011 5:35 pm

Issue with uploading zip file

Post by jnmediaGAd195 » Sat Jul 07, 2012 7:33 pm

I am new at this so I'm a little stymied right now. I started to submit my app to the App Store. I set up my standalone app setting in LiveCode and built a standalone application. I also logged in to iTunes Connect and entered by app info. My app status is 'Waiting for Upload'. I zipped my app file using Finder's Compress function (Number Wizard.app.zip). I logged into the Application Loader and chose my application. When I tried to upload it, I got:

Application failed codesign verification. The signature was invalid, contains disallowed entitlements or it was not signed with an iPhone distribution certificate.

Is there something more that I need to do in LiveCode or is this all Apple-related stuff?

Any help is greatly appreciated.

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

Re: Issue with uploading zip file

Post by jacque » Sat Jul 07, 2012 7:35 pm

Did you create a distribution provisioning certificate in your developer portal? The app has to be built with that, the test profile won't work.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

jnmediaGAd195
Posts: 58
Joined: Mon Dec 05, 2011 5:35 pm

Re: Issue with uploading zip file

Post by jnmediaGAd195 » Sat Jul 07, 2012 7:41 pm

I have one but I apparently never downloaded it. I downloaded it. Do I need to associate it with a keychain?

Thanks for your help. Much appreciated.

jnmediaGAd195
Posts: 58
Joined: Mon Dec 05, 2011 5:35 pm

Re: Issue with uploading zip file

Post by jnmediaGAd195 » Sat Jul 07, 2012 7:51 pm

It looks like I have a development Provisioning Profile.

jnmediaGAd195
Posts: 58
Joined: Mon Dec 05, 2011 5:35 pm

Re: Issue with uploading zip file

Post by jnmediaGAd195 » Sat Jul 07, 2012 8:49 pm

It looks like I am good to go. I got an 'informational' message, though. Hope it is not an issue.

"The resulting API analysis file is too large. We were unable to validate your API usage prior to delivery. This is just an informational message."

genie
Posts: 108
Joined: Thu Dec 01, 2011 7:19 am

Re: Issue with uploading zip file

Post by genie » Thu Oct 25, 2012 6:22 am

Hello! I got the same error on Application Loader as well...

"Application failed codesign verification. The signature was invalid, contains disallowed entitlements, or it was not signed with an iPhone Distribution Certificate."

What does this mean?

So...
I have created an App ID on developer.apple.com
I have created certificate using Cert Assistant on Keychain.
Uploaded the certificate on developer.apple.com (both development and distributor tab).
Created both developer and distribution provisioning profiles (used the App ID).
Downloaded the certificates and profiles. Clicked on them so that they appear on Keychain/Organizer.
Built the standalone using the App ID created and the Distribution provisioning profile downloaded.

I added some items on the app's info.plist so I need to re-sign it.
Using AppResigner, I resigned .app file using "Signing Identity: iPhone Distribution".

That's it!

I tried to upload the .ipa file on the App Loader, but I'm getting this error.
By the way, I'm also getting another error i.e.
"Unable to extract entitlements from application: /var/folders/zv.....Project.ipa/Project.app/Project"

What have I done wrongly? Did I miss something?

Please help...


Thanks,
Genie

dave_probertGA6e24
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 328
Joined: Mon Dec 05, 2011 5:34 pm
Contact:

Re: Issue with uploading zip file

Post by dave_probertGA6e24 » Thu Oct 25, 2012 10:09 am

Genie,

Did you zip the .app file before using the App Loader ? Remember to use the Apple Finder Compress option - not a third party zip tool - App Loader is very picky regarding this.

The Application Loader will ONLY work with zipped files.

Cheers,
Dave
Coding in the Sun - So much Fun.
Visit http://electronic-apps.info for released App information.

jessamy99
Posts: 103
Joined: Thu Oct 25, 2012 3:23 pm

Re: Issue with uploading zip file

Post by jessamy99 » Thu Oct 25, 2012 5:06 pm

Hi everyone,
I have a similar problem.
I have made certificates for development and distribution.
Made the profiles for both too.
Downloaded and installed them.

I have built my app using the developer profile and it worked fine on the device.
Then I built it using the distribution profile - and I put the same in iTunes connect online.
Then I zipped the app file and uploaded it but I still get an error re code signing.

First, do I need to add the app to iTunes before zipping it? Then it would have an .ipa.zip extension.
At the moment I have .app.zip extension.

Secondly, do I need to make an entitlements.plist? Or should I edit the plist?
And if so, where do I put it?

Thirdly, if I delete my certificates in keychain to start again, do I delete them all, or just the provisioning and distribution certificates?
Will the code signing certificate be automatically renewed?

Any help would be gratefully received as I have tried about 50 combinations and redownloaded the certificates and profiles all through the past few days!!

Sorry to sound so ignorant, but I am relatively new to macs!

Thanks in advance,
Jessamy

jnmediaGAd195
Posts: 58
Joined: Mon Dec 05, 2011 5:35 pm

Re: Issue with uploading zip file

Post by jnmediaGAd195 » Fri Oct 26, 2012 6:57 pm

jessamy99 wrote: First, do I need to add the app to iTunes before zipping it? Then it would have an .ipa.zip extension.
At the moment I have .app.zip extension.
You do not need to add the app to iTunes first. Did you zip it using Finder's Compress command (File - Compress)? I believe that is the only zip file that Apple will accept. The .app.zip extension is correct.
jessamy99 wrote:Secondly, do I need to make an entitlements.plist? Or should I edit the plist?
And if so, where do I put it?
I did nothing to plist when I submitted my app.
jessamy99 wrote:Thirdly, if I delete my certificates in keychain to start again, do I delete them all, or just the provisioning and distribution certificates?
Will the code signing certificate be automatically renewed?
I would just trying deleting the distribution certificate.

Before you do anything, make sure that in your Standalone Settings for iOS in LiveCode, your Profile is your distribution profile. When I had this problem, I was still using the development profile. When I switched it to distribution profile, it worked fine.

Don't worry about being ignorant (which you are not, by the way). The only way that I was able to get my app to submit is with the help of the fine people in these forums.

Hope this helps.

Judy

jessamy99
Posts: 103
Joined: Thu Oct 25, 2012 3:23 pm

Re: Issue with uploading zip file

Post by jessamy99 » Sun Oct 28, 2012 7:20 pm

Before you do anything, make sure that in your Standalone Settings for iOS in LiveCode, your Profile is your distribution profile. When I had this problem, I was still using the development profile. When I switched it to distribution profile, it worked fine.


Dear Judy,
first let me thank you for taking the trouble to answer all my queries.
Your answers solved some of the questions I had!!

Yes. I have the distribution certificate and profile installed.
The annoying thing is that everything is in place as far as I can see.
I have even tested the profiles with Xcode and it archived fine!!
But... I am still having problems uploading my app, still getting entitlements error.

But, the good news is that there is only one error now!!

I wish you all the best of luck with the sales of your maths program. I thought it was really good.

Best wishes, Jessamy.

PS. If you or anyone else has any other ideas - please help!! Thankyou.

genie
Posts: 108
Joined: Thu Dec 01, 2011 7:19 am

Re: Issue with uploading zip file

Post by genie » Mon Oct 29, 2012 3:51 am

Hello Dave!

I have converted .app to .ipa file before submitting.
I have already tried zipping it. :)

Still the same. :(


THanks,
genie

genie
Posts: 108
Joined: Thu Dec 01, 2011 7:19 am

Re: Issue with uploading zip file

Post by genie » Mon Oct 29, 2012 3:54 am

I'm thinking that it might be a problem with how I resign the app... :?
So, I use the AppResigner tool, choose the .app file, and resign it with "iPhone Distribution: Genie Dist".

Can anybody please tell me how you do resigning?

Thank you!

jessamy99
Posts: 103
Joined: Thu Oct 25, 2012 3:23 pm

Re: Issue with uploading zip file

Post by jessamy99 » Tue Oct 30, 2012 10:20 pm

genie wrote:I'm thinking that it might be a problem with how I resign the app... :?
So, I use the AppResigner tool, choose the .app file, and resign it with "iPhone Distribution: Genie Dist".

Can anybody please tell me how you do resigning?

Thank you!
Dear Genie,
I have discovered my problems are to do with my new macbook!!
I just went back to my old xcode program on my older macbook (Snow Leopard) and managed to upload that again with no problem.
So... I have downloaded the AppResigner tool as you had mentioned it.
I imported my live code app to my old laptop.
I resigned it with the AppResigner just as you did... iPhone Distribution: Jessamy Goddard
I opened finder and right clicked it to zip. (Not the api file, just the app that livecode generates.)
I rightclicked on the zip file to open with Application Loader (not in Xcode, I downloaded it from iTunes Connect).

I then got an error - entitlements missing.

Do you know if I need to add in the entitlements in the live code plist?
get-task-allow NO ?

Good luck with your upload!!

Jessamy.

jessamy99
Posts: 103
Joined: Thu Oct 25, 2012 3:23 pm

Re: Issue with uploading zip file

Post by jessamy99 » Thu Nov 15, 2012 11:08 pm

I solved the problem.
I had to make a new distribution certificate as I missed out a step before.
Now my app is waiting for review in itunes connect!

Thankyou all for the help!

Jessamy.

Post Reply