Archive and export with Xcode
After you create a scheme in Xcode, you can archive and export your debug build.
To complete this task:
-
Create a new
Veracode
folder, for example:~/Desktop/Veracode
. -
From the top menu bar in macOS, select Product > Archive. Your archive builds, and the Xcode Organizer highlights your archive.
If the Archive item is disabled, from the top of Xcode select your device from the breadcrumb menu, and then select Any iOS Device or Any visionOS Device.
-
Right-click your archive, and then select Show in Finder.
-
Copy your archive, and then paste it into your new
Veracode
folder. -
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
toMyApp.xcarchive
.
-
From the top-left in Xcode, click the Report Navigator icon, and then select Local.
-
Select the latest archive report.
-
Ensure you have the All and All Messages tabs selected in the same bar as the Export... button.
-
Select Export....
-
Save the build log to the
Veracode
folder. For example,MyApp.log.txt
.