Repository navigation
fix(ios): link rnmapbox_maps as a dynamic framework - #4410
Merged
Merged
Conversation
…eworks link The filter dropped React-Fabric, React-graphics, React-utils, React-debug and glog from install_modules_dependencies to support builds without use_modular_headers! on RN 0.73 RCs. Those pods define modules in every supported RN version, and with use_frameworks! :linkage => :dynamic rnmapbox_maps.framework failed to link without them. Fixes #4409
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes #4409
The podspec removed
React-Fabric,React-graphics,React-utils,React-debugandglogfrom theinstall_modules_dependenciesresult. That was added in #3116, on the RN 0.73 RCs, so that builds withoutuse_modular_headers!passedpod install. Those pods setDEFINES_MODULEin every supported RN version (checked 0.73.0, 0.76.0 and 0.79.0), so the filter isn't needed anymore. It also breaksuse_frameworks! :linkage => :dynamic:rnmapbox_maps.frameworkis linked on its own there, and the dropped pods' symbols can't be resolved. This PR keeps all the dependencies.Repro: a blank Expo SDK 58 app (RN 0.88, Xcode 26.6) with
@rnmapbox/mapspacked frommain, plusexpo-build-propertiesios: { useFrameworks: "dynamic", buildReactNativeFromSource: true }. Expo's default precompiled pipeline makes rnmapbox static, so it doesn't hit this. Simulator build with xcodebuild:52 undefined symbols in all, from glog and React-Fabric. With this change:
use_frameworksall build (** BUILD SUCCEEDED **).use_frameworksand dynamic both build./example(RN 0.84): default andUSE_FRAMEWORKS=dynamicboth build. These are build checks only; I haven't run the app on a simulator.RNMBX_SPM=1 pod installpasses, but I didn't build it. A bare from-sourcepod install(RCT_USE_PREBUILT_RNCORE=0) passes too, with none of the "do not define modules" errors fix(iOS, fabric): support build without modual_headers! #3116 worked around. The full source build fails infmt(a consteval error with Xcode 26.6), before it reaches rnmapbox, so that's unrelated.Checklist
CONTRIBUTING.mdyarn generatein the root folder/exampleapp./example)Component to reproduce the issue you're fixing