Other use cases

iOS and macOS

Dynamically linked libraries are automatically loaded by
the dynamic linker when the app starts. Their constituent
symbols can be resolved using DynamicLibrary.process.
You can also get a handle to the library with
DynamicLibrary.open to restrict the scope of
symbol resolution, but it’s unclear how Apple’s
review process handles this.

Symbols statically linked into the application binary
can be resolved using DynamicLibrary.executable or
DynamicLibrary.process.

Platform library

To link against a platform library,
use the following instructions:

In Xcode, open Runner.xcworkspace.

Select the target platform.

Click + in the Linked Frameworks and Libraries
section.

Select the system library to link against.

First-party library