Possible Duplicate:
Signer not valid error
I am trying to deploy my app via ad hoc distribution and I keep getting this error, no matter how closely I follow the documentation/other answers on SO.
Here is my process:
Create the Ad hoc distribution profile in the Prov. Portal.
Download the profile. Click and drag it to the XCode icon on the dock. It shows up in the Organizer
Create The Entitlements.plist file (below, auto generated by XCode, except for the get-task-allow property that I added myself):
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>application-identifier</key> <string>$(AppIdentifierPrefix)$(CFBundleIdentifier)</string> <key>get-task-allow</key> <false/> <key>keychain-access-groups</key> <array> <string>$(AppIdentifierPrefix)$(CFBundleIdentifier)</string> </array> </dict> </plist>
Go to Target AND Project settings, and set the code signing Entitlements property (I have tried with both a full path and a relative path)
Set the Code Signing entity and Any iOS to the Distribution profile
Build. Check the build log. The embedded.mobileprovision file is there and the code is signed correctly with the Distribution profile.
Go to the build folder, click and drag the .app file to the iTunes icon
View .app contents and see the Entitlements.plist is there and correct (as above)
Click and drag .mobileprovision file to iTunes (now getting a "Do you want to replace?" dialog...it shows up in the ~/Library/MobileDevice/Provisioning Profiles folder)
Quit XCode
Connect iPhone
Sync
"Signer not valid" error.
I am following instructions to a T on both the Apple developer site and here on Stack Overflow, and still nothing. I am hoping I am just tired and missing something, so I put up my entire process for you guys to pick apart.
**Note: I am able to add the app through iTunes if the provisioning profile is already on the device (i.e. added through XCode). But it seems that iTunes will not add the provisioning profile to the device. This won't do for an ad hoc distro where not everyone has XCode...or even a Mac. There must be a way to install the provisioning profile via iTunes.
Another note: My coworker (on whose phone I'm trying to install this app) claims that he did not need to install a provisioning profile for another ad hoc distributed app that he got recently. He recieved a .zip file, which he just dragged into iTunes and it worked. Is that possible? I would like to make a build work like that, so end users (for the testing phase) won't have to deal with installing a provisioning profile.**
Thanks in Advance, Esa