Closed extnous closed 10 months ago
If you just want to get your project linking and surprise this link error, you can add a stub class to the project with the same name:
PFProductsRecord.h
:
#import <Foundation/Foundation.h>
@interface PFProductsRecord : NSObject
@end
and PFProductsRequestHandler.m
:
#import "PFProductsRequestHandler.h"
@implementation PFProductsRequestHandler
@end
I have the same issue. It might be because PFProduct
and PFPurchase
are unavailable for Mac as marked by the PF_OSX_UNAVAILABLE_WARNING
.
Is there an easy way to ensure these unavailable files are not included in the Mac builds? I didn't have this issue when using CocoaPods, but now that we moved to SPM this occurred.
Same issue here running MacBook Pro M2.
This issue is still affecting my app. The interim fix suggested by @rogernolan has not worked for me. If I knew how to fix it in the parse code I would. Help! Anyone?
This is so frustrating.
Because of this error the whole Parse-SDK-iOS-OSX should drop the "OSX" from its name. It won't compile since February for Mac apps.
@santiagoprieto I don't know why PFProduct isn't supported on Mac, probably because StoreKit didn't support Mac at the time of this SDK creation. Looks like it does now from MacOS 10.7+ and StoreKit 2 has been release.
If you want to look into this you can add PF_TARGET_OS_OSX
in places required like here for PFPurchase and PFProduct
I've created a PR to fix this issue https://github.com/parse-community/Parse-SDK-iOS-OSX/pull/1739
@dplewis and @mtrezza you are the best. Thanks for your rad improvement. My app is now compiling perfectly and I'm ready to push a long-awaited update to my users.
New Issue Checklist
Issue Description
Getting the following compilation errors
Parse-SDK-iOS-OSX added with SPM. Errors only app for mac os application. Project for iOS App no compilation errors.
Steps to reproduce
Compile a new mac os project that make use of Parse-SDK-iOS-OSX version 2.0.1 or 2.0.2.
Actual Outcome
Expected Outcome
No compilation errors.
Environment
ObjC SDK version:
2.0.2
Mac OS - Ventura 13.0 Apple M1 Pro Xcode - Version 14.2 (14C18)Client
2.0.2
Server
N/A
N/A
N/A
Database
N/A
N/A
N/A
Logs