Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enable library evolution?

Tags:

xcode

swift

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?

like image 363
Den Andreychuk Avatar asked Oct 31 '25 07:10

Den Andreychuk


1 Answers

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

like image 188
Macmade Avatar answered Nov 01 '25 22:11

Macmade