Open source for non-ARC (automatic reference counting) and ARC users

We have open source libraries that are distributed through code to other projects through git modules with Xcode. Some of the projects will remain with explicit preservation / release, while other projects would like to use automatic reference counting. In any case, if the same source can be compiled in Xcode projects with and without ARC? Will it work if it was compiled into a static library?

+4
source share
1 answer

If you combine a project that compiles your open source library as a static library, and other projects reference your static library instead of directly compiling the source code, this will work. Other projects can embed your library project file if they want your library to be compiled before they are used, or you can just distribute the static library precompiled.

+4
source

Source: https://habr.com/ru/post/1369248/


All Articles