Updating to Xcode 11.4 resulted in :Swift package product '{SWIFT PACKAGE}' is linked as a static library by '{APP NAME}' and '{EXTENSION NAME}'. This will result in duplication of library code.. My project contains an application (A) and a helper (H), both sharing some libraries. Some of these libraries are under my control: my own packages (X). Some libraries are however not under my control: github libraries (Y). Xcode needs dynamic libraries to build my project, not the static libraries I had been using until 11.4. If your project resembles mine, the follow may fix the problem: Step 1 - Fix the libraries under my control (X)In the libraries that have a package.swift that is under my control, look up the .library and add type: .dynamic, as described by tadija (see above)Step 2: Fix the github libraries (Y)Fixing external libraries needs a (simple) workaround. Create a fresh framework (Z) for your project. Relocate libraries that are (still) cau
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: