Add that spm library as a framework
Target> General> Frameworks, Libraries, and Embedded Content
It’s because when you add a spm library, you can only choose one target.
iOS Developer
Add that spm library as a framework
Target> General> Frameworks, Libraries, and Embedded Content
It’s because when you add a spm library, you can only choose one target.