[PD] writing externals in xCode