Change IPA content/structure before or after archive

When I am trying to archive and publish my app, I'm getting an error: 'This bundle is invalid. The IPA format requires a top-level directory named Payload, containing only a .app bundle and optional plugins in a Plugins directory.' The IPA content/structure is different. Basically, the IPA has payload with my libraries/frameworks, but there is no app bundle, which includes them all. I want to change/edit the IPA so that it includes a .app bundle, but I'm not really sure how.

All inputs are appreciated :D

How are you creating the .ipa file?

You can go to the prefance to change where bundle is pointing to seem it can't fin the ipa file.

Change IPA content/structure before or after archive
 
 
Q