China's yuan weakened against the dollar on Thursday after the central bank set the currency's daily fixing weaker than expected, pulling back from a nearly four-month high touched a day earlier.