The application does not have a valid signature
Had a frustrating issue this weekend with one of my Xcode projects. I’ve been working with this project for months, without problems, and then suddenly the application won’t install onto the Simulator, and when ran onto the device, I’m greeted with the error: “The application does not have a valid signature.”
Note this is not the same as the more common invalid provisioning profile error. I of course, googled my problem with the error message, but to my surprise found very little of anyone else with the same problem.
After a slow process of elimination, I finally tracked down the problem.
In my application, the directory structure of the resource files is very important. Added folders with the default option in Xcode, adds them as a group, and in the resulting application, all the files are copied into the top directory. This creates problems with you have files which share the same name, in different directories.
The solution to this is of course use reference folders (the second option you can select when added files to the project).
This is all fine and dandy, but what caused my Xcode project to go haywire, was the fact that my reference folder was called “resources”. The solution, was simply to rename the folder to “resource” (or anything else in fact), and after a clean, it works.
Very very strange error, but thankfully with an easy fix, once you know how!
February 13th, 2010 at 7:32 am
You, sir, are a life saver.
April 10th, 2010 at 7:13 am
I am reading this article second time today, you have to be more careful with content leakers. If I will fount it again I will send you a link
October 20th, 2010 at 3:15 pm
I had the same problem, it was driving me crazy. Thanks!
May 7th, 2011 at 7:00 pm
Great job! Saved my butt!
September 27th, 2011 at 12:43 pm
You my friend are an absolute star.
February 6th, 2012 at 9:02 am
Hmm glad I found this before I wasted another day on stupid xcode stuf… Thanks for sharing this!