Skip to content

Commit

Permalink
fix(ios): add defined module (#3116)
Browse files Browse the repository at this point in the history
  • Loading branch information
mfazekas authored Oct 17, 2023
1 parent 44a7b52 commit d36ccb7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion example/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ end

flags = get_default_flags()
if flags[:fabric_enabled]
use_modular_headers!
pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec', :modular_headers => false
end

Expand Down
3 changes: 3 additions & 0 deletions rnmapbox-maps.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,10 @@ Pod::Spec.new do |s|
sp.source_files = "ios/RNMBX/**/*.{h,m,mm,swift}"
sp.private_header_files = 'ios/RNMBX/RNMBXFabricHelpers.h', 'ios/RNMBX/rnmapbox_maps-Swift.pre.h'
if new_arch_enabled
sp.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' }
install_modules_dependencies(sp)
dependencies_only_requiring_modular_headers = ["React-Fabric", "React-graphics", "React-utils", "React-debug"]
sp.dependencies = sp.dependencies.select { |d| !dependencies_only_requiring_modular_headers.include?(d.name) }.map {|d| [d.name, []]}.to_h
end
if ENV['USE_FRAMEWORKS'] || $RNMapboxMapsUseFrameworks
$RNMapboxMaps._add_compiler_flags(sp, "-DRNMBX_USE_FRAMEWORKS=1")
Expand Down

0 comments on commit d36ccb7

Please sign in to comment.