This bundle is invalid

I finally found the answer

//unzip your ipa file to AppContainer folder

unzip YourApp.ipa -d AppContainer/

//change directory in your App folder

cd AppContainer/Payload/YourApp.app

// remove old one

rm CodeResources

//create a symbolic link with ln

ln -s _CodeSignature/CodeResources CodeResources

//and then ,zip Payload folder to YourApp

zip -y -r YourFinalApp.ipa Payload/