Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions packages/react-native/scripts/cocoapods/spm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@ def apply_on_post_install(installer)
unless target.build_settings(config.name)['SWIFT_INCLUDE_PATHS'].include?(search_path)
target.build_settings(config.name)['SWIFT_INCLUDE_PATHS'].push(search_path)
end
# The search path above makes the platform-wide products dir visible
# to this target, so an SPM binary target's module.modulemap is seen
# twice: once there and once in the target's own build dir (Xcode
# processes the xcframework into both). Implicit modules tolerate the
# duplicate, but the explicit-modules dependency scanner (the default
# starting with Xcode 26) fails with "redefinition of module". Opt
# SPM-consuming pod targets out of explicit modules.
target.build_settings(config.name)['SWIFT_ENABLE_EXPLICIT_MODULES'] = 'NO'
end
end
end
Expand Down
Loading