Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@wavemaker/wm-reactnative-cli",
"version": "1.9.4",
"version": "1.9.5",
"description": "",
"main": "index.js",
"bin": {
Expand Down
39 changes: 39 additions & 0 deletions templates/ios-build-patch/podFIlePostInstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,45 @@ const newPostInstallBlock =
end
end
end

# Fix for React Native Firebase when using static frameworks
# ROOT CAUSE: Static frameworks with modules enabled create strict module boundaries.
# When RNFBMessaging imports <RNFBApp/...>, the module system expects ALL types to be
# visible through RNFBApp's module exports. But RCTPromiseRejectBlock is in React-Core,
# and RNFBApp doesn't re-export it. The module system blocks access even if headers exist.
#
# SOLUTION: Disable modules for RNFB targets entirely. This makes the compiler use
# traditional #import header inclusion instead of strict module boundaries.
installer.pods_project.targets.each do |target|
if target.name.start_with?('RNFB')
target.build_configurations.each do |config|
# DISABLE modules - this is the key fix
# Without modules, the compiler uses traditional header inclusion and can find
# React-Core types through the header search paths
config.build_settings['CLANG_ENABLE_MODULES'] = 'NO'

# Ensure header maps are enabled so headers can be found
config.build_settings['USE_HEADERMAP'] = 'YES'

# Add React-Core headers to search paths so they can be found via #import
header_search_paths = config.build_settings['HEADER_SEARCH_PATHS'] || '$(inherited)'
react_core_path = File.join(installer.sandbox.root, 'Headers', 'Public', 'React-Core')
react_core_path_quoted = '"' + react_core_path + '"'
if header_search_paths.is_a?(Array)
unless header_search_paths.any? { |path| path.include?('React-Core') }
header_search_paths << react_core_path_quoted
end
elsif header_search_paths.is_a?(String)
unless header_search_paths.include?('React-Core')
config.build_settings['HEADER_SEARCH_PATHS'] = [header_search_paths, react_core_path_quoted]
end
else
config.build_settings['HEADER_SEARCH_PATHS'] = ['$(inherited)', react_core_path_quoted]
end
end
end
end

end`;

module.exports = {
Expand Down