Description
Describe the bug
Since the introduction of the JSONSafeEncoder
framework we get an error each time we try to add both Segment and JSONSafeEncoder as vendored frameworks (through CocoaPods) to our application project.
When compiling our app we get several errors:
If we jump to a file where it errors you can see as the module name seems to be duplicated (it probably wouldn't even have to be added at all):
I've been searching for the root cause and a possible workaround but workarounds doesn't seem to work when cleaning the project and building again. In any case it seems to be related with the struct JSONSafeEncoder being named exactly the same as the file name as you can see here.
SPM integration works well
To Reproduce
Steps to reproduce the behavior:
- Create an example project using CocoaPods and adding Segment as well as Sovran and JSONSafeEncoder as vendored frameworks such as:
s.vendored_frameworks = [
"VendoredFrameworks/Segment.xcframework",
"VendoredFrameworks/Sovran.xcframework",
"VendoredFrameworks/JSONSafeEncoder.xcframework",
]
- Compile the project
- See error
Expected behavior
The project compiles as when integrated through SPM.
Platform (please complete the following information):
- Library Version in use: Tried with several of the latest versions, it happens with all of them. Latest release as well (1.5.9)
- Platform being tested: iOS