After countless hours of debugging finally got the build working. I had to add a script to ${DERIVED_FILE_DIR}/script-output.txt to the build phase output to essentially satisfy the warning that was causing the build to fail.