FBSnapshotTestCase images missing from test results

When the OS_ACTIVITY_MODE environment variable is set to disabled, this removes all system logs. It also removes NSLog from your application on iOS 11.

The solution is to set OS_ACTIVITY_MODE to default. default also removes all system logs, but keeps NSLog and the log lines containing the paths to the generated screenshots.

To specify/change the setting for OS_ACTIVITY_MODE in Xcode, follow these steps:

  1. Open the Product menu and select Scheme → Edit Scheme…​. The scheme dialog appears:

    The Edit Scheme dialog

  2. Click Run in the left-hand panel of the dialog.

  3. Click Arguments in the top navigation of the dialog.

  4. In the Environment Variables pane, create/set the value for OS_ACTIVITY_MODE to default.

results matching ""

    No results matching ""