material-components-ios icon indicating copy to clipboard operation
material-components-ios copied to clipboard

[BottomNavigation] Beta module integration set-up question/issue: private header file from non-Beta pod is not found

Open CapnSpellcheck opened this issue 5 years ago • 1 comments

In the BottomNavigation beta, I'm not sure if there is anything necessary besides simply adding the dependency as stated below. Inside an implementation (.m) file in the beta code, there is an attempt to #import a header within the private directory of the non-beta module.

Reproduction steps

Steps to reproduce the behavior: Add these 2 lines to an application target's spec:

  pod 'MaterialComponents/BottomNavigation', '93.3.0'
  pod  'MaterialComponentsBeta/BottomNavigation', :git => 'https://github.com/material-components/material-components-ios', :tag => 'v93.3.0'

Run pod install

Perform Build in Xcode

Expected behavior

Project is built successfully

Actual behavior

Project fails to build. Xcode reports error in MDCBottomNavigationBarController.m 'private/MDCBottomNavigationBar+Private.h' file not found On disk in Pods/MaterialComponentsBeta/BottomNavigation/src (which is there the file where the error occurs is located), there is no private directory. The private path is only in Pods/MaterialComponents/BottomNavigation.

Is this configuration known to work? How is it expected that private will be in the header search path for the Beta BottomNavigation code? Have you completed an example app setup that uses this Beta component that can properly build?

Platform (please complete the following information)

  • Device: OS X 10.13.6 CocoaPods 1.9.1

Additional context

Add any other context about the problem here.

CapnSpellcheck avatar Jun 07 '20 00:06 CapnSpellcheck

The title doesn't have a [Component] prefix.