I just switched from Xcode 3 to 4. When I attempt to upload an app that I have archived to the organizer, I receive this error:
The archive is invalid
My solution was:
Open the info.plist file in your project and in product name write your products name instead of $[PRODUCT_NAME]
info.plist
$[PRODUCT_NAME]