Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning tip for README post installation #207

Closed
wants to merge 1 commit into from

Conversation

NicoHinderling
Copy link
Collaborator

No description provided.

@@ -110,6 +110,9 @@ Add the package dependency to your Xcode project using the URL of this repositor
Link your app to `PreviewGallery` and (optionally) to `SnapshotPreferences` to customize the behavior of snapshot generation.
Link your XCTest target to `SnapshottingTests`.

> [!WARNING]
> If you happen to see the following error "Could not find or use auto-linked library 'XCTestSwiftSupport': library 'XCTestSwiftSupport' not found" after installing, try setting `ENABLE_TESTING_SEARCH_PATHS` to `YES` in your target's build settings!
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can put this in a GitHub issue so people can search for/find it? Feels like listing what appears to be an Xcode bug in the project readme would make it hard to find the more useful information in the readme. The "fix" for the GitHub issue could point here: https://forums.swift.org/t/the-error-cannot-find-auto-link-library-xctest-and-xctestswiftsupport/34785

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That thread also indicates maybe you were including a source file in both the test target and app target?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure I can put it in an issue instead... and ah I think I might have added the SnapshottingTests package to my app target. I'll document this in the issue as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants