Skip to content

Xcode cloud, reference path matches but "Unable to load reference image." #201

@baphony

Description

@baphony
  • In MyProject.xctestplan:
FB_REFERENCE_IMAGE_DIR: "$(SOURCE_ROOT)/$(PROJECT_NAME)Tests/ReferenceImages"
  • In Github I do have my reference image:
MyProjectTests/ReferenceImages_64/UITests.UITests/[email protected]
  • Xcode cloud Error:
UITests.testLoginUsername()
failed - Snapshot comparison failed: Optional(
  Error Domain=FBSnapshotTestControllerErrorDomain
  Code=1 "Unable to load reference image."
  UserInfo={
      NSLocalizedFailureReason=Reference image not found. You need to run the test in record mode,
      NSLocalizedDescription=Unable to load reference image.,
FBReferenceImageFilePathKey=/Volumes/workspace/repository/PROJECT_NAMETests/ReferenceImages_64/UITests.UITests/[email protected]
  }
)
UITests.swift:67

This works fine locally

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions