In Xcode 15.1, just added library in the project via SPM and tried to build, got errors as shown in screenshot. Even failing via cocoapods 