Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"The application does not have a valid signature" Xcode 4.3

I'm getting the weirdest error today.

"The application does not have a valid signature"

I get this error when I try to run the application from Xcode 4.3 on my device. Also when I archive it shows it as a generic archive instead of a real app.

Of course I deleted all of the invalid profiles, cleaned my derived data, cleaned my target, and restarted. No luck.

EDIT: Turns out that I had a folder reference in my app. I removed all of the references to the folders and made them groups and it worked!

like image 459
Matt Hudson Avatar asked Aug 22 '12 19:08

Matt Hudson


4 Answers

Just throwing this out there, might help someone in the future (and also would be good for my future reference).

I have a bigger project with 2 projects within (an API and the main project that is running on the device itself and which uses the API).

I have solved this problem by cleaning both projects and then rebuilding them.

like image 182
Alex Avatar answered Nov 15 '22 13:11

Alex


Ohhh...Cleaning the Project solved my problem..cheers :)

like image 31
Hawk-Eye Avatar answered Nov 15 '22 14:11

Hawk-Eye


This saved me: http://www.two-tails.com/2010/01/12/the-application-does-not-have-a-valid-signature/

Basically you cannot have a folder reference called "resources"! I changed to "rsrc" and magic.

like image 29
zerodog Avatar answered Nov 15 '22 14:11

zerodog


You can get a more detailed error message in the device log, which is extremely valuable for debugging this issue.

In XCode 7.3: Window -> Devices -> Select your device -> At the bottom there is an error log with detailed information.

For example in my case it outputs something like this:

Failed to install application at file:///var/mobile/Media/PublicStaging ... : Error Domain=LaunchServicesError Code=0 "(null)" UserInfo={Error=ApplicationVerificationFailed, ErrorDetail=-402620391,
ErrorDescription=Failed to verify code signature of
/private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.iKT2NH/extracted/XYZ.app
/Frameworks/Raygun4iOS.framework : 0xe8008019 (The application does not have a valid signature.)}

So in my case it is somehow caused by the Raygun framework that I have installed.

like image 2
robert Avatar answered Nov 15 '22 12:11

robert