3

I maintain a small library in Swift. I read the great article from Ben Cohen about evolution for Stable ABIs. To enable library evolution mode, I have to add a new command-line argument -enable-library-evolution.

My problem is, that even after I add -enable-library-evolution argument to Arguments passed On Launch in my scheme settings, I still have this weird warning from Xcode:

@frozen has no effect without -enable-library-evolution. Replace '@frozen ' with ''

Am I doing something wrong?

sandpat
  • 1,478
  • 12
  • 30
Den Andreychuk
  • 420
  • 4
  • 14

2 Answers2

3

You need to enable library evolution in your target's build settings, not on your scheme. Look for BUILD_LIBRARY_FOR_DISTRIBUTION.

Macmade
  • 52,708
  • 13
  • 106
  • 123
  • One more question. I still have that "@frozen has no effect" warning in console from Cocoapods, when trying to push my a new release. @macmade any ideas? – Den Andreychuk Feb 05 '20 at 13:09
-2

set the BUILD_LIBRARY_FOR_DISTRIBUTION build setting in the framework’s target. This setting turns on both library evolution and module stability. Be sure to use the setting in both Debug and Release builds.

Please follow below link for Library evolution: https://swift.org/blog/library-evolution/

Manoj
  • 677
  • 6
  • 6