How to use bitrise CL script effectively

Hi I have managed to get the bitrise cl script with a cordova project and two workflows running on my linux (ubuntu) machine, but it is looking for xcodebuild during the cordova build step? Should it not push it to the bitrise, build it there and then be able to pull down the apk/ipa?

Is there a step I should replace that build step with?