Skip to content

Vendored Framework: "... is not a member type of ..." error #322

Closed
@miquelalvarado

Description

@miquelalvarado

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:
Screenshot 2024-04-03 at 11 12 07

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):
Screenshot 2024-04-03 at 11 12 25

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:

  1. 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",
    ]
  1. Compile the project
  2. 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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions