Generate IR to package Apple Platform apps
After you archive and export your debug build with Xcode, you must run gen-ir
with your build log before you can upload your application to Veracode.
To complete this task:
-
Open your terminal and change directory to the
Veracode
folder. -
Run
gen-ir
with your build log and the archive path in the following command:gen-ir MyApp.log.txt MyApp.xcarchive/
Ensure MyApp.log.txt
points to the exported build log, and that MyApp.xcarchive/
is the newly-created xcarchive
.
-
Create a new archive. For example, you can use the following
zip
command:zip -r MyApp.zip MyApp.xcarchive
-
Upload your Apple Platform application to the Veracode Platform for analysis.
-
Optionally, to upload your archives with Veracode Software Composition Analysis, add the
Podfile.lock
file to the root of another zipped archive. Keep this new zipped archive separate from the one that contains the.xcarchive
folder, as shown in the following command:zip MyApp-Podfile.zip Podfile.lock
Upload
MyApp-Podfile.zip
to the same scan as theMyApp.zip
that you previously uploaded.