tikhop / TPInAppReceipt

Reading and Validating In App Purchase Receipt Locally.
MIT License
635 stars 95 forks source link

[Catalyst] Failed to build in Xcode 14: 'kIOMasterPortDefault' is unavailable in Mac Catalyst #102

Closed gongzhang closed 2 years ago

gongzhang commented 2 years ago

Hello, I found TPInAppReceipt failed to build with Xcode 14 beta 4 when targeted to Mac Catalyst. The error is as below.

image

I tried modified the deprecated kIOMasterPortDefault to kIOMainPortDefault but it does not seem to work.

image
tikhop commented 2 years ago

Hi @gongzhang, I have just merged a related PR: https://github.com/tikhop/TPInAppReceipt/pull/101 Thanks for reminding me.

gongzhang commented 2 years ago

@tikhop You're so quick. Thanks!