When building an iOS app for distribution (dist-adhoc, dist-appstore) using Titanium SDK 3.0.X or 3.1.X and using the Titanium CLI 3.2.0, the deploy type is not properly being set to "production" in the --target callback.
What happened was there was this bug and a bug in the Titanium CLI. During the Titanium CLI refactor, I fixed the second bug making this bug visible.
We can't got back and fix SDKs that have shipped, but we can augment old SDKs with runtime patches. This is where the hook system comes in. A simple hook can tie into the post-validate hook event and fix the deploy type for distribution targets.