Added support to generate ipa from xcarchive

These changes add support to generate ipa from xcarchive.