SPM + GTest
If you need to expose a C++ library with #gtest via #spm, there is a straightforward way to wrap existing tests with #xctest:
1. Add gmock as a .systemLibrary target in your Package.swift and link it to your .testTarget.
2. Create a module map and an umbrella header for gmock.
3. Create an Obj-C++ adapter that wraps GoogleTest with XCTestCase.
🚀 CMD + U