As far as I am aware, Xcode will always link statically unless it is defined in the dependencies package file that it should be linked dynamically. However, there is one workaround you can use without changing the package file. You can link the package into a dynamic framework which contains an @_exported import
; therefor, re-exporting everything. Afterwards, you can use this dynamic framework instead of the original one and avoid duplicated symbols.
Note: I think it might be required to add a load_all linker flag, although I am not sure right now if this is needed