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


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 ‘’ 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:

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.

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.