Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 698 Bytes

README.md

File metadata and controls

16 lines (11 loc) · 698 Bytes

Swift library evolution issue

This is the sample repo to show issue with compilation of @propertyWrapper code with enabled BUILD_LIBRARY_FOR_DISTRIBUTION flag. I'm trying to build static swift library, and I have propertyWrappers in my code.

Failing builds:

When I enable BUILD_LIBRARY_FOR_DISTRIBUTION flag, compilation fails with this error: img.png

Successful builds:

However, if I put Model structure inside the EvolutionInteractor class, it compiles successfully. img.png Same will happen if I wrapp struct inside another struct in extension as it was in first sample: success2.png