Plurrrr

Sat 05 Sep 2020

Auto Linking on iOS & macOS

When object files get linked at the final build stage, the linker needs to know which libraries to link against. For example, if you add #import <AppKit/AppKit.h> to an implementation file, you need to also add -framework AppKit to the linker flags.

Auto Linking aims to remove the latter step, i.e., it aims to derive the library linker flags from the import statements in your code. Developers do not need to add any framework/library linker flags anymore, they can just start using any framework by importing.

Source: Auto Linking on iOS & macOS, an article by Milen Dzhumerov.