Unity IAP crash on tvOS 12 & 13 due to isFamilyShareable

This has been in a few versions of Unity IAP and it’s due to UnityPurchasing.m lacking the tvOS 14+ qualifier around the code that handles isFamilyShareable product metadata

#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 140000 || __MAC_OS_X_VERSION_MAX_ALLOWED >= 110000
if (@available(iOS 14, macOS 11.0,*))
{
[product isFamilyShareable] ? [metadata setObject: @"true" forKey: @"isFamilyShareable"] : [metadata setObject: @"false" forKey: @"isFamilyShareable"];
}
#endif

Thank you for the report!
This has been fixed in our next release.

If you need a workaround until then, you can use this in UnityPurchasing.m

if (@available(iOS 14, macOS 11.0, tvOS 14, *)) {
[product isFamilyShareable] ? [metadata setObject:@"true" forKey:@"isFamilyShareable"] : [metadata setObject:@"false" forKey:@"isFamilyShareable"];
}
#endif