Check your build settings. You must have a team assigned and the build type should be set to App Store IIRC.