[TIMOB-12169] Create build log with compilation

Resolves https://jira.appcelerator.org/browse/TIMOB-12169
You cannot check `cli.argv.p`. You must check `cli.argv.platform`. Furthermore, you should not be doing the check for `ios` here. This is already done in the titanium-sdk library. You can change this entire line to:

    platform = ti.resolvePlatform(cli.argv.platform),