In my case, it was grep output, which confused the build of the script.
Try the following command before buildor run:
export GREP_OPTIONS="--color=never"
Background
The source of the problem is in the platforms/ios/cordova/buildscript:
My local environment contains:
export GREP_COLOR='1;37;40'
export GREP_OPTIONS="--color=always"
.., grep-, script, :
XCODEPROJ=$( ls "$PROJECT_PATH" | grep .xcodeproj )
PROJECT_NAME=$(basename "$XCODEPROJ" .xcodeproj)
- :
XCODEPROJ=$( ls "$PROJECT_PATH" | grep --color=never .xcodeproj )
PROJECT_NAME=$(basename "$XCODEPROJ" .xcodeproj)
!