Hopefully this helps someone out there. I figure that, even a year after the original post, if I'm encountering the same problem them others might be too...
So, after 8 hours I finally managed to get my applications to transfer to my Touch without errors. There are tons of suggestions around, both here and a multitude of other places, but nothing quite got rid of that darn "0xE800003A applicationverificationfailed" error.
Then I found an offhand reference to PROVISIONING_PROFILE in a forum somewhere... And this wouldn't be the first time I had messed-up Xcode project files that I had to edit by hand.
So this is what I did to finally solve my problem:
Right-click your Xcode project file "MyApp.xcodeproj" and select "Show Package Contents".
Make a copy of project.pbxproj, just in case.
Edit project.pbxproj and change/remove any lines that are like the following:
buildSettings = {
...
"CODE
SIGNIDENTITY\[sdk=iphoneos*\]" = "iPhone Developer: FirstName LastName";
"PROVISIONING_PROFILE\[sdk=iphoneos*\]" = "XXXXXXXX-1111-YYYY-2222-ZZZZZZZZZZZZ";
...
};
I actually often had multiple lines for each of CODE
SIGNIDENTITY and PROVISIONING_PROFILE. But in each case you only want one of each with none of that "sdk = stuff":
buildSettings = {
...
"CODE
SIGNIDENTITY" = "iPhone Developer: FirstName LastName";
"PROVISIONING_PROFILE" = "XXXXXXXX-1111-YYYY-2222-ZZZZZZZZZZZZ";
...
};
You'll probably have at least two sets of these lines, once for Release and once for Debug.
Once I did this, cleaned my project and ran it, I suddenly had the codesign script asking for permission to access my keychain. Of course I gave it permission and suddenly I had my application on my Touch. Woo Hoo!
One thing I've noticed is that if I want to upload a new build to my Touch that I need to first delete the old version from my Touch directly or I get the same old applicationverificationfailed error again. (hold finger on app icon for a few seconds, wait for little X's to appear, click the X on my app and delete).
Also, make sure that you're using a correctly copied version of Tiku's script, along with the modifications above to handle spaces in names. I screwed up something along the way that contributed to finding my problem.
Finally, I also found this blog posting very useful (it was a reply that lead me to my solution):
http://www.24100.net/2009/02/iphone-sdk-mobile-provisioning-0xe800003a-0xe800000 1/
Good Luck!