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
Select Product > Scheme > New Scheme.
Choose the target build, and then append
-Veracodeto the name of your new scheme. For example,
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
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,
From the top-middle of Xcode, click Build Settings > All > Build Options > Debug Information Format, and then set the values to DWARF with dSYM.