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 artifact to Veracode.
To complete this task:
-
Open your terminal and change directory to the
Veracodefolder. -
Run
gen-irwith 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
zipcommand:zip -r MyApp.zip MyApp.xcarchive -
Upload your Apple Platform artifact to the Veracode Platform for analysis.
-
Optionally, to upload your archives with Veracode Software Composition Analysis, add the
Podfile.lockfile to the root of another zipped archive. Keep this new zipped archive separate from the one that contains the.xcarchivefolder, as shown in the following command:zip MyApp-Podfile.zip Podfile.lockUpload
MyApp-Podfile.zipto the same scan as theMyApp.zipthat you previously uploaded.