The application does not have a valid signature. - tried everything on the forums

Hello,

I’ve been beating my head against this code signing stuff all day. I have launched applications on the App Store before, so I’ve dealt with and solved code signing errors in the past.

I can build in Corona 704 for iOS. I see both Developer and Distribution profiles.

If I use Developer, I get the following error.

warning: Application failed codesign verification. The signature was invalid, or it was not signed with an iPhone Distribution Certificate. (-19011)
Executable=/Users/aisaksen/Projects/appabovegamesllc/grid/build/lua.app/lua
codesign_wrapper-0.7.10: using Apple CA for profile evaluation

If I use Distribution, then I get no errors and it invites me to upload to the AppStore.

Now, if I try to put either of these builds onto the device (via Xcode 4.2.1 build 4D502, by connecting device, going to Applications tab for the device in Organizer, dragging and dropping the target bundle onto the window) everything uploads, but then I get a message at the end that says “The application does not have a valid signature.”

I’ve tried using the most recent daily build and it does the same thing.

I’ve tried signing with developer and distribution builds, and when i run the "code sign’ command on the bundle, everything looks like its working ok.

I’ve tried getting all new certificates, revoking all my profiles, and starting from scratch ,and I still get the same error. I see that the profiles are correctly installed in Keychain Assistant and in Xcode organizer.

My company name is AppAbove, Inc. and I saw in another thread that having quotes can cause an issue. I don’t have any quotes but I do have a comma and a period. Maybe thats the issue?

Anything else to try? I don’t know what else to do. [import]uid: 122310 topic_id: 21132 reply_id: 321132[/import]

I have another company that has no comma or period in it, so I tried building for that. Same issue…i keep getting the “The application does not have a valid signature.” error. I’ve tried generic app Ids and also specific ones, for both new developer and new distribution certs and profiles for both companies. [import]uid: 122310 topic_id: 21132 reply_id: 83642[/import]

I have also tried using TestFlight to upload the file to my devices, just in case its something wrong with Xcode. Everything uploads to TestFlight ok, and then when it tries to install on the device it downloads the data, gets to the Installing… part and puts up a popup that say “Unable to Download Application” “game could not be installed at this time.”

I also tried installing via iTunes, and something similar happens…the devices says the app can’t be signed with iTunes.

So going around Organizer doesn’t seem to matter. It seems like something is not really signing the file correctly. [import]uid: 122310 topic_id: 21132 reply_id: 83645[/import]

I assume you are getting this error when building your own app. What happens if you build one of the apps supplied with Corona (e.g. Hello World)?

If Hello World installs and runs, try renaming the build.settings file of your failing project and see if that runs. If that works, it’s most likely a problem with the plist section of the build.settings file. [import]uid: 7559 topic_id: 21132 reply_id: 83672[/import]

Thanks for the idea Tom, I did a New Project and selected Game as the default. Then I built iOS using a Developer profile and it worked by installing via Xcode Organizer. OK, so its something wrong with my app…thats helpful!

I am able to build my own app for Android and run on the Kindle Fire.

I’ll track down the differences and see what I can find. One thing I noticed is that when I do a Build with the Default Game Project it comes up with the game name already filled in, but with my app it comes up with “lua” each time. Do you know why that is? I think thats a clue to why the projects are different. [import]uid: 122310 topic_id: 21132 reply_id: 83673[/import]

yay! I figured it out! you can’t have a resource subdirectory in your app…everything has to be in the flat directory where main.lua is stored.

Phew…thats doesn’t seem very user friendly.

Ideas:

  • allow us to have directories for our resources
  • let us know that its a bad thing to do at compile time

Thanks for the tip Tom…I wouldn’t have been able to debug it without that idea (should have thought of it myself but i was misled by the code signing error) [import]uid: 122310 topic_id: 21132 reply_id: 83675[/import]

Corona does support subdirectories for resources. How are you defining them in your code? Does the subdirectories contain other lua files and are you using “.” to specify the subdirecotry?

For examples (from the “require” API):
local fooBar = require( “foo.bar” )
This will load “bar.lua” file from the “foo” subdirectory. [import]uid: 7559 topic_id: 21132 reply_id: 83678[/import]

here is how you reproduce:

  1. Create a new project with Game template
  2. go into the project folder and create a dir called “resources”
  3. build for iOS
  4. install on device

At step 4, you will get the code signing error. you don’t even need to put a file in the “resources” dir.

There must be something magic about the “resources” filename. [import]uid: 122310 topic_id: 21132 reply_id: 83689[/import]

Hey Aisaksen,

We’re aware of the “resources” subdirectory issue; as Tom said you CAN use subdirectories, you just cant name them “resources”.

Peach :slight_smile: [import]uid: 52491 topic_id: 21132 reply_id: 83701[/import]

Hi Aisaksen,

I didn’t realize that you were naming the subdirectory “resources”. As Peach mentioned this has caused problem with iOS builds in the past. I’m going to add a note to the “require” API and hope that it helps the next person with this problem. [import]uid: 7559 topic_id: 21132 reply_id: 83722[/import]

I think the most developer friendly fix would be to put a warning in the Build warning window (like where it says you are missing icons or signed with a developer profile). That would have caught the issue exactly where its a problem (and saved me several hours!)

Its not (only) an issue with the require API because they are resources that can be loaded with the audio API.

Thanks for your quick response…I appreciate it! [import]uid: 122310 topic_id: 21132 reply_id: 83777[/import]

The “resources” subdirectory issue is an Apple bug and not in Corona. As you noticed it’s not an issue when building for Android. The build process is a little fragile and we have plans to improve it in the future to catch problems. I agree it would be nice to provide a warning message in cases like this. [import]uid: 7559 topic_id: 21132 reply_id: 83804[/import]

Hi,
I’ve just tried to build my new app.
I’ve got this message (first time, I builded my app several times before…) :
“The application does not have a valid signature.”
I read this post, so I’ve just tried to build “Hello World” sample and I’ve got the same message :
“The application does not have a valid signature.”
Please note that I installed Version 2012.934 (2012.10.12) recently.
Thanks for any help :slight_smile:
Olivier [import]uid: 160159 topic_id: 21132 reply_id: 127569[/import]

If you are using a recent build of Corona, you need to use the most recent Xcode version (4.5) or you will get “Invalid signature” errors. [import]uid: 7559 topic_id: 21132 reply_id: 127604[/import]

Hi,
I’ve just tried to build my new app.
I’ve got this message (first time, I builded my app several times before…) :
“The application does not have a valid signature.”
I read this post, so I’ve just tried to build “Hello World” sample and I’ve got the same message :
“The application does not have a valid signature.”
Please note that I installed Version 2012.934 (2012.10.12) recently.
Thanks for any help :slight_smile:
Olivier [import]uid: 160159 topic_id: 21132 reply_id: 127569[/import]

If you are using a recent build of Corona, you need to use the most recent Xcode version (4.5) or you will get “Invalid signature” errors. [import]uid: 7559 topic_id: 21132 reply_id: 127604[/import]

Thanks Tom :slight_smile:
On the road to Mountain Lion!
[import]uid: 160159 topic_id: 21132 reply_id: 127897[/import]

thanks guys, you have saved my life :slight_smile: I hate resources :slight_smile: [import]uid: 117608 topic_id: 21132 reply_id: 128038[/import]

Thanks Tom :slight_smile:
On the road to Mountain Lion!
[import]uid: 160159 topic_id: 21132 reply_id: 127897[/import]

thanks guys, you have saved my life :slight_smile: I hate resources :slight_smile: [import]uid: 117608 topic_id: 21132 reply_id: 128038[/import]