This version of Unity is unsupported.

BuildStep.messages

public BuildStepMessage[] messages;

Description

All log messages recorded during this build step, in the order of which they occurred.