skip to Main Content

I just updated the expo to version 51.0.28 and react native to version 0.74.5 using npx expo-doctor.
But now i have this error while starting the project, couldn’t find any lead in the hermes engine github issues.

 Something went wrong running `pod install` in the `ios` directory.
Command `pod install` failed.
└─ Cause: Failed to load 'hermes-engine' podspec: 
[!] Invalid `hermes-engine.podspec` file: undefined method `visionos' for #<Pod::Specification name="hermes-engine/Pre-built">.

 #  from /Users/my-project/node_modules/react-native/sdks/hermes-engine/hermes-engine.podspec:47
 #  -------------------------------------------
 #        ss.ios.vendored_frameworks = "destroot/Library/Frameworks/universal/hermes.xcframework"
 >        ss.visionos.vendored_frameworks = "destroot/Library/Frameworks/universal/hermes.xcframework"
 #        ss.osx.vendored_frameworks = "destroot/Library/Frameworks/macosx/hermes.framework"
 #  -------------------------------------------

Anyone run into this as well?

I tried, removing node_module, ios directory and installing it again, didn’t help.
Then i upgraded the react native to `0.75.0` as it is the latest, didn’t help.

2

Answers


  1. Chosen as BEST ANSWER

    Solution for now

    On node_modules/react-native/sdks/hermers-engine/hermes-engine.podspec

    i commented out

    # ss.visionos.vendored_frameworks = "destroot/Library/Frameworks/universal/hermes.xcframework"

    and patched it with npx patch-package react-native

    I will pay a close attention to issue to remove the patch as soon as possible.


  2. I had this exact problem with the same version of react-native and expo. I had to update my CocoaPods using homebrew (I’m on Mac) and that fixed the error. I am also running the latest version of xcode. Hope that helps you.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search