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

Fix ambiguous XCTest.tearDown swizzle #120

Merged
merged 1 commit into from Sep 23, 2021
Merged

Conversation

iamDecode
Copy link
Contributor

This PR addresses an issue occurring with Xcode 13 that prevents this project from building.

Xcode has trouble determining which XCTest.tearDown is referred to, the class or the instance method. As an alternative I initially suggested Selector("tearDown") which will use the instance method and resolve the issue. However, for that change Xcode displays a warning, and suggests the change in this PR as an alternative.

I have tested the change on Xcode 13 and an old Xcode 12.2 beta, on both it compiles and tests pass.

Closes #119

@kylef kylef merged commit 9e5bd2f into kylef:master Sep 23, 2021
@natoring
Copy link

@kylef
I am waiting for release about this Pull requests.
best regards.

@toddgower-hiatus
Copy link

Can we get a release with these changes?

@Servus7
Copy link

Servus7 commented Oct 4, 2021

You could use this for now:
pod 'Mockingjay', :git => 'https://github.com/kylef/Mockingjay.git', :branch => 'master'

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.

Unable to use the library on Xcode 13.0 (Swift 5.5)
5 participants