You can use the Veracode Mobile Application Packager Command-Line Tool to compile and package XCWORKSPACE and XCODEPROJ files or package XCARCHIVE files from Xcode projects into ZIP files. The command-line tool compiles and packages files with the required structure for submission to Veracode in an automated environment.
- Open a command-line window.
Enter a command with the appropriate packaging action and configuration options
for the file type you want to package.
When the action completes, results are available at ~/Documents/MobileApplicationPackager/.
- To compile and package your iOS application with the required Veracode
settings, enter vcxcodepkg -b=~<MyProjectFile>. For
vcxcodepkg -b=~/MyProject.xcodeproj --noui --logfile=~/Desktop/log.log
- If you have already compiled your application as an XCARCHIVE file,
enter vcxcodepkg -a=~<MyArchiveFile> to package the file
in the structure Veracode requires. For
vcxcodepkg -a=~/MyArchive.xcarchive --verbose
- To compile and package your iOS application with the required Veracode settings, enter vcxcodepkg -b=~<MyProjectFile>. For example: