CwlUtils icon indicating copy to clipboard operation
CwlUtils copied to clipboard

Static version required to use with Swift PM

Open xavier-rigau opened this issue 5 years ago • 0 comments

Any framework (say F) that depends on https://github.com/mattgallagher/CwlUtils.git will use a dynamic link library if the CwlUtils is consumed as a swift package.

This creates a problem because when another application A consumed the framework F it doesn't get a copy of CwlUtils.

The workaround listed in the readme creates missing CwlFrameAddress issues in application A.

The solution is again to consume CwlUtils in application A. Looks like the SPM doesn't know how to deal the dynamic libraries.

I believe the line is here: .library(name: "CwlUtils", type: .dynamic, targets: ["CwlUtils"]),

Does CwlUtils need to be dynamic?

xavier-rigau avatar Apr 04 '20 00:04 xavier-rigau