90596 Invalid bundle error when uploading to app store connect

I'm trying to upload a PhoneGap ipa file to App store connect using Xcode > application loader and I'm getting the following error. I had successfully uploaded the same bundle 2 weeks ago. The only difference is that the version is upgraded in phonegap > config.xml and its giving us this error. We are you using XCode 9's Application Loader 3.7 to upload the IPA file   Any help would be highly appreciated. ERROR ITMS-90596: "Invalid Bundle. The asset catalog at 'Payload/.../Assets.car' can't be read. Try rebuilding the app with a non-beta version of Xcode and submit it again."
1 answers

We upgraded macos version, Xcode upgraded to v10 and App loader to V4 and it worked.