oblador / react-native-keychain

:key: Keychain Access for React Native
MIT License
3.18k stars 519 forks source link

Unrecognized platform name visionOS error #624

Closed c100k closed 6 months ago

c100k commented 7 months ago

The last update seems to have created breaking changes. When bumping from 8.1.3 to 8.2.0 and building, Xcode is not able to make it work.

Screenshot 2024-03-01 at 16 54 51

I'm getting the following errors:

Config

jayweb007 commented 7 months ago

same here

c100k commented 7 months ago

Please don't comment "Same", it doesn't bring anything to the issue. Add more information on your setup or simply upvote the original post.

aslihanturkdonmez commented 6 months ago

I was using "react-native-keychain:^8.1.2"and after pod installation I got this error:

InvalidRNKeychain.podspecfile: undefined methodvisionos' for #<Pod::Specification name="RNKeychain`

When I check my npm list I saw my react-native-keychain version is "8.2.0". Then I change to "react-native-keychain:~8.1.2" and pod install worked without any problem.

Im using react-native: 72.4

uranashel44 commented 6 months ago

I was using "react-native-keychain:^8.1.2"and after pod installation I got this error:

InvalidRNKeychain.podspecfile: undefined methodvisionos' for #<Pod::Specification name="RNKeychain`

When I check my npm list I saw my react-native-keychain version is "8.2.0". Then I change to "react-native-keychain:~8.1.2" and pod install worked without any problem.

Im using react-native: 72.4

Hi. I have had the same. Please go to node_modules/react-native-keychain/RNKeychain.Podspec and comment the line which starts first/includes with "visionos", it will help your project runable before the maintainer can fix the issue.

c100k commented 6 months ago

Note that if you don't need the changes introduced in 8.2.0, it's safer to downgrade and fix the dependency to 8.1.3 (not ^8.1.2).

You don't know the side effects that you can introduce by commenting a line of code in a config file of a dependency.

EmanuelMaciel commented 6 months ago

Hello, I changed the Keychain version to 8.1.3 and was successful in executing the action and compiling the project.

Packages:

tomerh2001 commented 6 months ago

Any updates?

thiagobrez commented 6 months ago

PR with the fix is under review: https://github.com/oblador/react-native-keychain/pull/631