fixed ios patch to work with both 3.0 and tip of tree (it changed)