oblador / react-native-keychain

:key: Keychain Access for React Native
MIT License
3.12k stars 515 forks source link

fix: add visionos deployment target conditionally #638

Open xavieramoros opened 1 month ago

xavieramoros commented 1 month ago

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:

Invalid `RNKeychain.podspec` file: undefined method `visionos' for #<Pod::Specification name="RNKeychain">.

image

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.