Swift Package Manager Logo

Implementing Swift Package Manager –Example 5

This entry is part 11 of 14 in the series Swift Package Manager

Three Layers Of Packages, With Dynamic Frameworks

In this example, we include a package, represented as a dylib, that embeds another dylib, that embeds a static library.

This has the same issue as Example 3, where dynamic frameworks can present challenges, when using the Hardened Runtime.

Here is the GitHub link to the PackageConsumer project Version 5.0.0. You can check out that version, and reproduce the results here.

Read more

Implementing Swift Package Manager –Example 6

This entry is part 12 of 14 in the series Swift Package Manager

Three Layers Of Packages, With A One-Level-Down Dynamic Framework

In this example, we include a package, represented as a static library, that embeds a dylib, that embeds another static library (“dylib sandwich”).

This has the same issue as Example 3, where dynamic frameworks can present challenges, when using the Hardened Runtime.

Here is the GitHub link to the PackageConsumer project Version 6.0.0. You can check out that version, and reproduce the results here.

Read more

Implementing Swift Package Manager –Conclusion

This entry is part 14 of 14 in the series Swift Package Manager

Whew! That Was A Handful, Eh?

Even though it may seem that this was a comprehensive treatment of the Swift Package Manager, it was really just a fairly basic introduction.

The examples were shallow and linear, and we didn’t even get into writing executable code in the package manifest files.

But we did learn enough to make the Swift Package Manager a useful and productive tool for our development work.

Read more