Add checks on darwin SDK copy