After upgrade with XCode 15.4, the archive step is failed with this error: Command line name “ad-hoc” is deprecated. Use “release-testing” instead.
The distribution method of my archive step sets to “ad-hoc”
I tried to replace ad-hoc with release-testing in the yml file. But I got another error: failed to parse config: - ExportMethod: release-testing: value is not in value options (opt[app-store,ad-hoc,enterprise,development])
Step: Xcode Archive & Export for iOS 5.1.3
XCode 15.4
Could you please advice with a resolution?
Hi @Natalia-Klymenko , we are aware of this change in xcodebuild and new Step versions will be released soon to incorporate the changes.
For now, in Xcode 15.4 (Build version 15F31d which is used on our osx-xcode-15.4.x stack) the old export methods are ‘just’ deprecated, they aren’t removed yet.
This is from a related xcodebuild version’s help command:
method : String
Describes how Xcode should export the archive. Available options: app-store-connect, release-testing, enterprise, debugging, developer-id, mac-application, validation, and package. The list of options varies based on the type of archive. Defaults to debugging. Additional options include app-store (deprecated: use app-store-connect), ad-hoc (deprecated: use release-testing), and development (deprecated: use debugging).
Are you sure that the step is failing because of the export method? Please share your build URL representing the problem here or on our Support channel.
Thank you for your replay. I think the problem still exists.
Here is the build: Bitrise - Mobile Continuous Integration and Delivery - iOS & Android Build Automation
with the issue reason in xcodebuild-export-archive.log
I finally found a workaround for other projects to make configurations in bitrise.yml with release-testing
instead of ad-hoc in export_options_plist_content.
But for projects without yml file the issue is not resolved.
The issue appears if compiling on XCode 15.3. It looks fine for XCode 15.1, 15.2.