Problem publishing app through Xcode: Invalid Bundle Structure - phonegap-plugin-push


#1

Hi,

I’ve been trying to submit my app to App Store, but I’ve been facing a lot of errors like this when uploading the archive through xcode:

The binary file ‘MyApp.app/www/lib/phonegap-plugin-push/src/ios/GoogleUtilities/Libraries/libGTM_SystemVersion.a’ is not permitted.

All the other errors are also because of a file inside phonegap-plugin-push.

I’ve found someone with similar problem here: https://github.com/phonegap/phonegap-plugin-push/issues/534

But I didn’t quite understand how to solve it…

I’ve tried removing all folders inside myproject/plugins/, as the last person suggested, but still same error.


#2

Okay, I think I’ve got it.

I’ve removed all folders inside myproject/plugins BEFORE running ‘cordova build ios --release’

I was trying removing it from xcode project, which had no effect at all.