Skip to content

fix(swizzle): harden nil-class guards and fix Catalyst build & fake-touch flags - #269

Open
Rengwang wants to merge 1 commit into
PlayCover:masterfrom
Rengwang:pr/fix-catalyst-build-and-swizzle-guards
Open

Rengwang wants to merge 1 commit into
PlayCover:masterfrom
Rengwang:pr/fix-catalyst-build-and-swizzle-guards

Conversation

@Rengwang

Copy link
Copy Markdown
  • Add nil-class and missing-method guards (pt_swizzleInstanceMethod, pt_swizzleExchangeInstanceMethod, pt_swizzleClassMethod) in NSObject+Swizzle.
  • Replace VSSubscription * parameter type with id so the target compiles for Mac Catalyst as well as iOS.
  • Replace runtime isiOSAppOnMac / isMacCatalystApp checks in UITouch+KIFAdditions with compile-time TARGET_OS_MACCATALYST and selector guards (prevents selector crashes when identity spoofing is enabled).

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.

1 participant