Skip to main content

Archive and export with Xcode

After you create a scheme in Xcode, you can archive and export your debug build.

To complete this task:

  1. Create a new Veracode folder, for example: ~/Desktop/Veracode.

  2. From the top menu bar in macOS, select Product > Archive. Your archive builds, and the Xcode Organizer highlights your archive.

    If the Archive option is disabled, from the top of Xcode select your device from the breadcrumb menu, and then choose Any iOS Device.

  3. Right-click your archive, and then select Show in Finder.

  4. Copy your archive, and then paste it into your new Veracode folder.

  5. Rename your xcarchive by removing everything after the name of your app. For example, rename it from MyApp-Veracode 31-12-2222, 12.45.xcarchive to MyApp.xcarchive.

Xcode interface showing the various buttons involved in the next steps

  1. From the top-left in Xcode, click the Report Navigator icon, and then select Local.

  2. Select the latest archive report.

  3. Ensure you have the All and All Messages tabs selected in the same bar as the Export... button.

  4. Select Export....

  5. Save the build log to the Veracode folder. For example, MyApp.log.txt.