Skip to content
This repository has been archived by the owner on Aug 26, 2021. It is now read-only.

'AFHTTPResponseSerializer' has different definitions in different modules #438

Closed
theogscott opened this issue Apr 28, 2021 · 1 comment
Closed

Comments

@theogscott
Copy link

theogscott commented Apr 28, 2021

I have AFNetworking, required for legacy Objc Code needs it, in my pod file, but as soon as I add VimeoNetworking then the Swift compiler produce a few similar problems above

The full message is: 'AFHTTPResponseSerializer' has different definitions in different modules; first difference is definition in module 'VimeoNetworking.AFURLResponseSerialization' found property

How do I proceed?

Wouldn't it better to strip the AFNetworking code that was copied into VimeoNetworking-develop/Sources/Shared/ThirdParty/AFNetworking and add ask the user to add AFNetworking as a dependency in the pods file.

Any reason why there is duplication of AFNetworking code?

Xcode used is Version 12.4 (12D4e), Swift 5 (as in the VimeoUpload example).

@theogscott
Copy link
Author

Not sure if anybody is here, but my solution to this problem was to rename all the AF... classes in Sources/Shared/ThirdParty/AFNetworking to VIMAF... to keep the linker happy.

Still puzzled why Vimeo made a physical copy of the AFNetwoking classes into the VimeoNetworking.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant