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
[Xcode 9 beta 5] Fixed an issue causing infinite recursion in the Swift runtime. #3498
Conversation
4bd07f4
to
fa18d14
Compare
@@ -110,7 +110,7 @@ private func subclassName(of class: AnyClass) -> String { | |||
/// - class: The class to swizzle. | |||
/// - perceivedClass: The class to be reported by the methods. | |||
private func replaceGetClass(in class: AnyClass, decoy perceivedClass: AnyClass) { | |||
let getClass: @convention(block) (Any) -> AnyClass = { _ in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why does this cause infinite recursion? 😕
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The stack is overflown by an infinite recursion of Swift._bridgeAnyObjectToAny
. We shouldn't have used Any
here anyway.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one bit me pretty badly recently during development. Any idea what is causing the CI build to fail? I know nothing about CocoaPods, myself… |
We should pass |
Checklist