4.0 SDK Beta will not compile your application for app store. I had to downgrade to 3.2.2 to get it to work. iTunes connect complained about a invalid certificate but the real problem was 4.0 SDK beta not compiling the app with the appropriate certificate.
Be very careful using 4.0 Beta
As far I know, 4.0 is not yet supported, its suppose to be in a week or so.