productbuild: error: The component at "/Users/user/Downloads/AppName.app" is not a bundle.

Hi, I need help to solve the following error:

productbuild: error: The component at "/Users/user/Downloads/AppName.app" is not a bundle.

That error occurred after the signing process finished successfully and try to execute the following command to create .pkg file:

productbuild --component /Users/user/Downloads/AppName.app /Aplications --timestamp --sign 'CertificateName' /Users/user/Downloads/pkg/AppName.pkg

I'm seeing this error too. The bundle in question runs properly locally and is correctly signed. Did you find out what the problem was?

productbuild: error: The component at "/Users/user/Downloads/AppName.app" is not a bundle.
 
 
Q