From 77effdbdcb26a255b3bd63d4b4cbcc7553a7463c Mon Sep 17 00:00:00 2001 From: Brett Best <6104381+Brett-Best@users.noreply.github.com> Date: Tue, 4 Jun 2024 16:04:25 +1000 Subject: [PATCH] fix: Importing of project into Swift projects (#2160) ## Description Fixes https://github.com/software-mansion/react-native-screens/issues/2158 by making C++ headers project instead of public. Original code sample (in the issue) can be updated to include this change verifying the fix. ## Checklist - [x] Included code example that can be used to test this change - [ ] Updated TS types - [ ] Updated documentation: - [ ] https://github.com/software-mansion/react-native-screens/blob/main/guides/GUIDE_FOR_LIBRARY_AUTHORS.md - [ ] https://github.com/software-mansion/react-native-screens/blob/main/native-stack/README.md - [ ] https://github.com/software-mansion/react-native-screens/blob/main/src/types.tsx - [ ] https://github.com/software-mansion/react-native-screens/blob/main/src/native-stack/types.tsx - [ ] Ensured that CI passes --- RNScreens.podspec | 1 + 1 file changed, 1 insertion(+) diff --git a/RNScreens.podspec b/RNScreens.podspec index da0170ef93..fccadeaae7 100644 --- a/RNScreens.podspec +++ b/RNScreens.podspec @@ -63,6 +63,7 @@ Pod::Spec.new do |s| s.platforms = { :ios => platform, :tvos => "11.0", :visionos => "1.0" } s.source = { :git => "https://github.com/software-mansion/react-native-screens.git", :tag => "#{s.version}" } s.source_files = source_files + s.project_header_files = "cpp/**/*.h" # Don't expose C++ headers publicly to allow importing framework into Swift files s.requires_arc = true if defined?(install_modules_dependencies()) != nil