I solved it by using the Project Launcher:
Create a new profile and first select to build for shipping, on build section and cook everything. This will fail again with same message but next time just uncheck “Do you wish to build?” but keep checked “is this build for distribution to the public?”
Also on Cooking - >“Cooker build configuration” select “Shipping”. Note the project launcher get some settings from the main project settings such the provision file and Certificate. This time it will finish the packaging . I fact when playing around with the settings from project launcher I was able to create a “Shipping” IPA with a developer certificate but of course the Application loader rejected it later on.