It looks like I might be able to strip out the custom IPA packaging code and replace it with xcrun. Need to investigate, but it's always better to use existing tools for the right job.