RSSwizzle
RSSwizzle copied to clipboard
Switch from deprecated OSSpinLock to os_unfair_lock
When building with the iOS 10 SDK, OSSpinLock() triggers warnings in Xcode as it has been deprecated.
This pull request switches to Apple's replacement, os_unfair_lock ( https://developer.apple.com/reference/os/1646466-os_unfair_lock_lock ) when the base SDK is iOS 10+ or macOS 10.12+.