Closed Mx-Iris closed 8 months ago
Hello. Are you using this with CocoaPods?
Hello. Are you using this with CocoaPods?
I using SwiftPM
This does not seem to be a problem caused by references from multiple libraries. I encountered this issue when I added an associated object in an extension of NSView and then added another associated object in an extension of NSControl. NSControl inherits from NSView.
Thanks. I have tried it and it seems to work fine for me.
Maybe a clean build will get it to work.
MyLibrary.zip This is an example that can be reappear by importing the library in two different files
Thanks. It certainly did not work. Sorry.
It was probably because I had implemented the _associated_object_key function in the header file.
I used the library in both libraries and the compilation reported an error, maybe due to @_exported import AssociatedObjectC? , because the duplicate symbols come from here