react-native-pager-view icon indicating copy to clipboard operation
react-native-pager-view copied to clipboard

PropsParserContext.h 'react/utils/ContextContainer.h' file not found

Open jslok opened this issue 1 year ago • 6 comments

Environment

RN0.72.3 rnpagerview 6.2.0

Description

On ios building in xcode I get the following error: PropsParserContext.h 'react/utils/ContextContainer.h' file not found

jslok avatar Jul 13 '23 19:07 jslok

Hello @jslok,

Did you run pod install inside the ios directory?

okwasniewski avatar Jul 17 '23 10:07 okwasniewski

Seems like React Native issue. @cipolleschi

ravindraguptacapgemini avatar Jul 18 '23 10:07 ravindraguptacapgemini

Does an empty react native app build without the react-mative-pager-view lib? if yes, that;s not a react-native issue. If that's not the case, please open an issue in the react native repo with a reproducer created starting from this template

cipolleschi avatar Jul 20 '23 12:07 cipolleschi

Workaround until resolved by react native:

Add 'react-native/ReactCommon' to the header search path in your Podfile (in my case, the "RNScreens" pod was giving the problem):

    installer.pods_project.targets.each do |target|
          if target.name == "RNScreens"
              append_header_search_path(target, "${PODS_ROOT}/../../node_modules/react-native/ReactCommon")
          end
        end

Also define the append_header_search_path in your Podfile:

  def append_header_search_path(target, path)
      target.build_configurations.each do |config|
          # Note that there's a space character after `$(inherited)`.
          config.build_settings["HEADER_SEARCH_PATHS"] ||= "$(inherited) "
          config.build_settings["HEADER_SEARCH_PATHS"] << path
      end
  end

rditerwich avatar Jul 29 '23 10:07 rditerwich