I am trying to upload build on AppStore using Xcode 13. But when I try to do so, I am getting the below error
Invalid Bundle Structure - The binary file 'MyApp.app/Frameworks/HHUnitConverter.framework/HHUnitConverter' is not permitted. Your app can’t contain standalone executables or libraries, other than a valid CFBundleExecutable of supported bundles. Refer to the Bundle Programming Guide at https://developer.apple.com/go/?id=bundle-structure for information on the iOS app bundle structure.
When I archive the build and make it ready for upload, this is how my framework looks which is not correct I suppose
And when I click on upload, after sometime I am getting this error.
I have tried deleting and reinstalling the pods, restarting Xcode and the system, clearing derived data, but nothing works. Any help will be appreciated. Thanks in advance
I recently ran into the same issue
To resolve this issue you need to select your archive, right click it, select "show in finder" then right click on the archive and select "show package contents" then select products > Applications then right click on your app and again select "Show package contents". Now find "Frameworks" folder and delete the executable file with the folder name specified in the error.
This worked for me