copied doc building script phase from DTCoreText