Invalid `RNKeychain.podspec` file: undefined method `visionos' for #<Pod::Specification name="RNKeychain">.
The fix
In the Podspec file, check if the visionos attribute exists (with "respond_to?(:visionos)") before setting the deployment_target for visionOS to version 1.0.
Fixes issue https://github.com/oblador/react-native-keychain/issues/632
introduced in this PR: https://github.com/oblador/react-native-keychain/pull/622
The problem
When installing pods, we get the following error:
The fix
In the Podspec file, check if the visionos attribute exists (with "respond_to?(:visionos)") before setting the deployment_target for visionOS to version 1.0.