- 
                Notifications
    You must be signed in to change notification settings 
- Fork 34
Description
Unexpected error while running "package:ios": Error: ENOENT: no such file or directory, lstat '/Users/amir.saifutdinov/projects/SDK/ios/Pods/hermes-engine/destroot/Library/Frameworks/universal/hermes.xcframework'
Expected behavior:
The iOS packaging step should successfully copy either hermes.xcframework or hermesvm.xcframework into the destination directory without errors.
Actual behavior:
The script fails with ENOENT, indicating that the directory
Pods/hermes-engine/destroot/Library/Frameworks/universal/hermes.xcframework
does not exist.
Possible cause:
Starting from React Native 0.82.0, the Hermes framework was renamed to
hermesvm.xcframework.
The current copyHermesXcframework script still expects the old path
(hermes.xcframework), which causes the copy operation to fail.
Proposed solution
Update copyHermesXcframework.ts to detect the React Native version from package.json.
If the version is [email protected] and above, use hermesvm.xcframework; otherwise, use the legacy hermes.xcframework