EVReflection
EVReflection copied to clipboard
Xcode 16.3 / Swift 6.1 Member operator '!=' of protocol 'EVReflectable' must have at least one argument of type 'Self'
Hi! It looks like changes in Swift 6.1 have changed rules for member operators of protocols: https://github.com/swiftlang/swift/issues/78733. Because of this EVReflectable can't be compiled with Xcode 16.3 version.
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.
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.
i am getting the same error in Xcode 16.3
@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.
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
why the fix is not available yet?
Is this version available?
Please use the code from the latest branch. Update the Podfile with the following line:
pod 'EVReflection', :git => 'https://github.com/evermeer/EVReflection', :branch => 'master'
Please use the code from the latest branch. Update the Podfile with the following line:
pod 'EVReflection', :git => 'https://github.com/evermeer/EVReflection', :branch => 'master'
I use the pod config to load the lib, but I had get the git error:
[!] Error installing EVReflection [!] Failed to download 'EVReflection': [!] /opt/homebrew/bin/git clone https://github.com/evermeer/EVReflection /var/folders/3l/nj4dcxm13f54cf55wn6z8p5w0000gn/T/d20251015-43463-iz5gpv --template=
正克隆到 '/var/folders/3l/nj4dcxm13f54cf55wn6z8p5w0000gn/T/d20251015-43463-iz5gpv'... error: RPC 失败。curl 18 Transferred a partial file error: 预期仍然需要 1347 个字节的正文 fetch-pack: unexpected disconnect while reading sideband packet fatal: 过早的文件结束符(EOF) fatal: fetch-pack:无效的 index-pack 输出
@evermeer Hi ,do we have the plan to make a version for the commit that fix the the error? Thank you.