Skip to main content

Configure Xcode to Replace Third-Party Libraries

note

This product is deprecated. Veracode will delete this topic on February 1, 2023.

You can force Xcode to create a mock framework so that you can successully build an application.

  1. In Xcode, create a mock framework with a name that includes the name of the library you want to replace. For example, if the original library is named InclusionLib, name the new framework InclusionMockLib.

  2. Import this mock framework into the application project.

  3. Edit the source code of your mock framework and stub out any methods and classes that you want to access from your application.

  4. Link the mock framework to the main application and make it a target dependency.