Skip to content

Plugin-brownfield-ios: ENOENT while running package:ios #603

@whydidoo

Description

@whydidoo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions