You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Drag and drop xcframework into a newly created application
Make sure the Embed and sign option 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 Segment in any of the application files
Build the project
Expected behavior
Build succeeded.
Actual Behaviour
Build failed.
Screenshots
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.
The text was updated successfully, but these errors were encountered:
Fixed! Implementationonly wouldn't suffice as it leaves out any protocol imports. Pull the xcframework for Sovran (which is on the release page at that repo now) and you should be good.
Uh oh!
There was an error while loading. Please reload this page.
I am trying to use
Segment
by using an attachedxcframework
. After adding a framework, importing it into my host application and just building I have a problem with (I suppose) the library evolution ofSovran
(the framework Segment depends on).The error violation for the
import Semgent
The error violation into
swiftinterface
file:To Reproduce
Steps to reproduce the behavior:
xcframework
from the release 1.4.0xcframework
into a newly created applicationEmbed and sign
option 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.import Segment
in any of the application filesExpected behavior
Build succeeded.
Actual Behaviour
Build failed.
Screenshots

Platform (please complete the following information):
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
.The text was updated successfully, but these errors were encountered: