Installer created with productbuild won't write to /Applications

I'm creating a .pkg installer with the line below. It creates the installer in the correct place. When I execute the installer it doesn't write the .app to /Applications. It doesn't write it anywhere. Does anyone have an ideas how to fix this? I checked the installer.log on terminal and it doesn't show any errors.

sudo productbuild --sign "3rd Party Mac Developer Installer: xxxxxxx" --component BOZ.app /Applications ./BOZPackage.pkg 

Replies

It turns out I misspelled the "MacOS" folder as "MacOs" and that seems to have been causing the problem.