Skip to content

build: avoid VSSubscription type unavailable on Mac Catalyst in newer SDKs - #244

Open
jokerlin wants to merge 1 commit into
PlayCover:masterfrom
jokerlin:fix/vssubscription-catalyst-signature
Open

jokerlin wants to merge 1 commit into
PlayCover:masterfrom
jokerlin:fix/vssubscription-catalyst-signature

Conversation

@jokerlin

Copy link
Copy Markdown

Problem

VSSubscription is unavailable on Mac Catalyst in the Xcode 27 SDK, so the hook_setCurrentSubscription: parameter type fails to build.

Fix

Type the argument as id. The hook ignores its argument, so runtime behaviour is unchanged.

Split out of #240.

… SDKs

The hook ignores its argument; typing it as id keeps runtime behaviour
identical and lets PlayTools build with Xcode 27.
@TheMoonThatRises

Copy link
Copy Markdown
Member

Should the swizzle hook be runtime restricted to versions below 18.0 since setCurrentSubscription is also deprecated?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants