Skip to content

Xcode 16.3 / Swift 6.1 Member operator '!=' of protocol 'EVReflectable' must have at least one argument of type 'Self' #327

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

Open
qyzdo opened this issue Apr 1, 2025 · 7 comments

Comments

@qyzdo
Copy link

qyzdo commented Apr 1, 2025

Hi! It looks like changes in Swift 6.1 have changed rules for member operators of protocols: swiftlang/swift#78733. Because of this EVReflectable can't be compiled with Xcode 16.3 version.

Image
@evermeer
Copy link
Owner

evermeer commented Apr 1, 2025

I think the change is simply replacing EVReflectable for all parameters there to Self. Unfortunately my MacBook is out of order. Would be nice if someone could test that and make a PR.

@qyzdo
Copy link
Author

qyzdo commented Apr 1, 2025

I'll try to do this in my free time. Currently, I made a local CocoaPod with updated parameters to Self, and it seems to be working fine.

@UpendraVerma
Copy link

i am getting the same error in Xcode 16.3

@qyzdo
Copy link
Author

qyzdo commented Apr 7, 2025

@evermeer, I was trying to run the tests, but it seems like they weren't updated for a long time, and I couldn't compile them. I fixed the arm64 compiling issue by updating the podfile, but then I had some Moya objective-c header issues.

@h4acda
Copy link

h4acda commented Apr 10, 2025

Indeed, changing the four 'EVReflectable' to 'Self' would suffice. Could the author please update it? It can be done without using a MAC computer or using WIN's notepad, and any changes can be submitted. Thank you

Dariel-G added a commit to Dariel-G/EVReflection that referenced this issue Apr 17, 2025
evermeer added a commit that referenced this issue Apr 18, 2025
Update EVReflectable for issue #327
@lucalucic
Copy link

why the fix is not available yet?

@LuizPanariello
Copy link

Is this version available?

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

No branches or pull requests

6 participants