I’m trying to add the StoreKit Framework to my macOS project, so I can ask users to review my app with
In order to do so, I’ve created a RequestReview.mm and RequestReview.h. What I generally do is include the <StoreKit/StoreKit.h> on the first line of my .mm file, in order to make sure it doesn’t conflict with the project. But now, my linker fails with
Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_SKStoreReviewController", referenced from: objc-class-ref in RatingRequest.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
So it looks like <StoreKit/StoreKit.h> should be included in a header, since the class SKStoreReviewController is static? Well, what would be the correct place to do so, since anywhere I’ve tried, I break the full project and get errors like: Reference to ‘Point’ is ambiguous.