Skip to main content

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:

  1. Open your terminal and change directory to the Veracode folder.

  2. 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.

  1. Create a new archive. For example, you can use the following zip command:

    zip -r MyApp.zip MyApp.xcarchive
  2. Upload your Apple Platform application to the Veracode Platform for analysis.

  3. 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 the MyApp.zip that you previously uploaded.