Create a scheme for archiving debug builds
You must create a scheme in Xcode to archive your debug builds.
To complete this task:
-
Open your project in Xcode, and make sure it is in a buildable state.
-
From the top menu bar in MacOS, select Product > Scheme, and then choose your main scheme. For example, your scheme name can be
MyApp
. -
Select Product > Scheme > New Scheme.
-
Choose the target build, and then append
-Veracode
to the name of your new scheme. For example,MyApp-Veracode
.To avoid accidentally submitting this debug archive to AppStore Connect, Veracode recommends that you keep this scheme separate from your regular scheme.
-
Select Product > Scheme > Edit Scheme… > Archive > Build Configuration > Debug.
-
To avoid confusion, ensure the Archive Name field name is different than your regular archive names. The default name is
MyApp-Veracode
. -
Click Close.
-
From the top-left of Xcode, click the Project navigator folder icon in the menu. The Project navigator menu loads on the left side of Xcode.
-
Select the project, which is usually the top of the Project navigator. For example,
MyApp
. -
From the top-middle of Xcode, click Build Settings > All > Build Options > Debug Information Format, and then set the values to DWARF with dSYM.