Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Compile error in 1.17.4 with Xcode 16.1.0 Beta: Missing required module 'Testing' #900

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

Closed
JRR-OSU opened this issue Sep 6, 2024 · 2 comments

Comments

@JRR-OSU
Copy link

JRR-OSU commented Sep 6, 2024

Hi all,

We love your library, but currently it doesn't seem to be usable with Xcode 16.1. When importing the library, an error is observed that prevents compilation of the test target. I included a minimal sample project down below. This is pretty urgent since we are a week away from a new Xcode RC.

Describe the bug
When importing SnapshotTesting in a project, the following error occurs:

Missing required module 'Testing'

To Reproduce
swift-snapshot-testing.zip

import SnapshotTesting

final class SnapshotTestSampleUITests: XCTestCase {

Expected behavior
The project should compile without errors when importing SnapshotTesting, and the SnapshotTesting library should function as expected without the Testing module error.

Screenshots
image

Environment

  • swift-snapshot-testing version 1.17.4
  • Xcode 16.1.0 Beta
  • Swift 5
  • OS: macOS 14.5 / iOS 18.1 Simulator

@stephencelis Am happy to help fork and fix this if I can get some more information on the Testing framework and the wizardry happening with the imports here. Thanks!

@JRR-OSU
Copy link
Author

JRR-OSU commented Sep 6, 2024

FWIW, I cannot get the sample to compile with Xcode 16.0 Beta 5 or Beta 6 either. Both of those are running in Swift 5 mode.

@mbrandonw
Copy link
Member

Hi @JRR-OSU, the project you have provided compiles just fine in Xcode 16.1 beta for me, and I also created a fresh project, added SnapshotTesting, and that too compiles just fine.

Can you please provide a project that demonstrates the problem? And since it is not clear this is an issue with the library, I am going to convert this to a discussion. Please feel free to continue the conversation over there.

@pointfreeco pointfreeco locked and limited conversation to collaborators Sep 6, 2024
@mbrandonw mbrandonw converted this issue into discussion #901 Sep 6, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants