-
Notifications
You must be signed in to change notification settings - Fork 109
Closed
Labels
Description
I am trying to useSegment by using an attached xcframework. After adding a framework, importing it into my host application and just building I have a problem with (I suppose) the library evolution of Sovran (the framework Segment depends on).
The error violation for the import Semgent
Failed to build module 'Segment' for importation due to the errors above; the textual interface may be broken by project issues or a compiler bug
The error violation into swiftinterface file:
No such module 'Sovran'
To Reproduce
- Xcode 14.2 (14C18)
- Segment 1.4.0 release
Steps to reproduce the behavior:
- Create an empty application with iOS 16.0 as a minimum deployment target
- Download an
xcframeworkfrom the release 1.4.0 - Drag and drop
xcframeworkinto a newly created application - Make sure the
Embed and signoption is selected for a given framework since it's a dynamic one. If this step will be not done, the dynamic library will fail to load at runtime. - Make
import Segmentin any of the application files - Build the project
Expected behavior
Build succeeded.
Actual Behaviour
Build failed.
Platform (please complete the following information):
- Library Version in use: 1.4.0
- Platform being tested: iOS, Xcode 14.2 14C18
- Integrations in use: N/A
Additional context
I suppose it's because of the swift library evolution. All modules that the framework depends on should be built with library evolution and the internal usage of them should be marked with @_implementationOnly import Sovran.

