I have a library I created with Swift Package Manager, and I'd like to use it in both my Containing App and Safari App Extension.
- I've added the library to the Project using the new "Swift Packages" tab in Xcode.
- The Safari App Extension Target has my library added under "Frameworks and Libraries".
With this configuration I get "Undefined symbol" compiler errors. If I add the library to the App under "Frameworks, Libraries, and Embedded Content", then I get:
"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."
The odd thing is that the project compiles fine in Xcode 11.3.1. Did something change with SPM in the Xcode 11.4 beta? Maybe I should use a dynamic library? Or am I doing something else wrong?