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.
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/Namepost-build.Root cause: likely that
DYLIB_INSTALL_NAME_BASEis not set to@rpathin 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.