Error uploading IOS app from Xcode

Hi everyone! I´m trying to upload my IOS app from Xcode to apple connect to test the app on TestFlight but I have the following error while I validating or I try to distribute on apple connect

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. (ID: 3e413c57-b31a-4ae2-bc90-e7e29c340e46).

Any posible solutions to fin this error ?

Hi everyone! I'm facing the same issue when trying to upload my iOS app from Xcode to Apple Connect for testing on TestFlight. I'm getting the same error about the IPA format and the Payload directory structure. I've been struggling with this for days and haven't found a solution yet. If anyone has encountered this problem and knows how to fix it, your help would be greatly appreciated. Thanks!

Error uploading IOS app from Xcode
 
 
Q