EVReflection icon indicating copy to clipboard operation
EVReflection copied to clipboard

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

Open qyzdo opened this issue 7 months ago • 7 comments
trafficstars

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.

Image

qyzdo avatar Apr 01 '25 10:04 qyzdo

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.

evermeer avatar Apr 01 '25 14:04 evermeer

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.

qyzdo avatar Apr 01 '25 14:04 qyzdo

i am getting the same error in Xcode 16.3

UpendraVerma avatar Apr 04 '25 08:04 UpendraVerma

@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.

qyzdo avatar Apr 07 '25 09:04 qyzdo

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

h4acda avatar Apr 10 '25 01:04 h4acda

why the fix is not available yet?

lucalucic avatar May 09 '25 10:05 lucalucic

Is this version available?

LuizPanariello avatar May 21 '25 17:05 LuizPanariello

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'

phucnguyen1998 avatar Aug 04 '25 07:08 phucnguyen1998

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 输出

Pateo-shengzhichen avatar Oct 15 '25 09:10 Pateo-shengzhichen

@evermeer Hi ,do we have the plan to make a version for the commit that fix the the error? Thank you.

Pateo-shengzhichen avatar Oct 15 '25 09:10 Pateo-shengzhichen