Skip to content

iOS: XCFramework install names are wrong (absolute paths instead of @rpath) #310

@OctavianTocan-TwinMind

Description

@OctavianTocan-TwinMind

brownfield package:ios produces XCFrameworks with wrong dylib install names. TwinMindDigestBrownfield gets /Library/Frameworks/... (absolute path) and ReactBrownfield gets a temp build path (/private/var/folders/.../swbuild.tmp...). Only hermesvm.xcframework has the correct @rpath-based install name. This causes DYLD 'Library not loaded' crashes when a consumer app embeds the frameworks.

Workaround: use install_name_tool -id @rpath/Name.framework/Name post-build.

Root cause: likely that DYLIB_INSTALL_NAME_BASE is not set to @rpath in the build configuration for the framework targets.

Tested with: brownfield CLI from @callstack/react-native-brownfield 3.5.1, React Native 0.83.6, Expo SDK 55.

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