问题
UPDATE: This issue is still present in Xcode 7.1 beta 2. Looks like this will be here a while.
I just updated to Xcode 7 GM and am in the process of generating ad-hoc archives for various builds. However, it does not appear that you can specify the directory path where you want to save the resulting .ipa file. It is going straight to the desktop in a pre-named folder that includes a timestamp.
Steps to (hopefully) reproduce
From the main menu, select Product --> Archive
In the resulting window, select 'Export...'
Choose 'Save for Ad Hoc Deployment' and select 'Next' (other methods seems to exhibit the same behavior)
Choose the provisioning profile and select 'Choose'
In the 'Device Support' window, select 'Export one app for all compatible devices'
In the 'Summary' window, select 'Next'
Rather than enabling the 'Export' button (which previously allowed the user to select the destination), it now directly saves the .ipa in a folder on the desktop.
It is more of an annoyance that a required feature, but it is a pain that it appears you cannot specify the destination folder for the archive.
Anyone else have this issue and/or know how to fix it?
Thanks.
回答1:
It looks like the latest version of Xcode (7.3) allows you to select the destination and folder name that contains the IPA file when generating ad-hoc releases.
回答2:
Xcode generate .ipa file automatically on your desktop. It should be in the directory named from your app+date. If you cannot find it then try: CMD+space and type [name of archive].ipa and you should find it :) Hope it helps.
来源:https://stackoverflow.com/questions/32573321/specify-location-for-ipa-file-in-xcode-7-ad-hoc-release