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

[MDCCatalog] Not able to build and run MDCCatalog using XCode 12.3 (12C33)

Open yccheok opened this issue 4 years ago • 1 comments

I try to follow every steps described in https://github.com/material-components/material-components-ios . Yet, I am still not able to run sample project (MDCCatalog) successfully. Any help is very much appreciated

Reproduction steps

Steps to reproduce the behavior:

Step 1

yccheok@Tees-MacBook-Pro material-components-ios % sudo gem install cocoapods
Password:
Successfully installed cocoapods-1.10.0
Parsing documentation for cocoapods-1.10.0
Done installing documentation for cocoapods after 2 seconds
1 gem installed

Step 2

yccheok@Tees-MacBook-Pro material-components-ios % pod try MaterialComponents
Updating spec repositories

Trying MaterialComponents
1: catalog/MDCCatalog.xcworkspace
2: catalog/MDCDragons.xcodeproj
3: demos/Bare/Bare.xcworkspace
4: demos/Pesto/Pesto.xcworkspace
5: demos/Shrine/Shrine.xcworkspace
Which project would you like to open
1
Performing CocoaPods Installation
Installing CatalogByConvention (2.5.2)
Installing MDFInternationalization (2.0.0)
Installing MDFTextAccessibility (2.0.0)
Installing MaterialCatalog (119.3.0)
Installing MaterialComponents (119.3.0)
Installing MaterialComponentsExamples (119.3.0)
Installing MaterialComponentsSnapshotTests (119.3.0)
Installing MotionAnimator (2.8.1)
Installing MotionInterchange (1.6.0)
Installing iOSSnapshotTestCase (2.2.0)
Pod installation complete! There are 82 dependencies from the Podfile and 10 total pods installed.
Opening '/private/var/folders/yw/q_b23mrn7_b7_c17lk7h4dwc0000gq/T/CocoaPods/Try/MaterialComponents/catalog/MDCCatalog.xcworkspace'
yccheok@Tees-MacBook-Pro material-components-ios % 

Step 3

Screenshot 2021-01-02 at 10 17 25 PM

The 2 erros are

  1. Undefined symbol: OBJC_CLASS$_MDFTextAccessibility
  2. Undefined symbol: _MDFTrailingMarginAutoresizingMaskForLayoutDirection

In the "Project navigator", I am getting the following red color

Screenshot 2021-01-02 at 10 19 10 PM

May I know what steps I have missed out? Thank you.

Expected behavior

Able to build and run MDCCatalog in iPod/ iPhone simulator without issue.

Actual behavior

Not able to build and run MDCCatalog in iPod/ iPhone simulator

Platform (please complete the following information)

Development machine OS: macOS Catalina 10.15.7 Xcode 12.3 (12C33)

Additional context

Add any other context about the problem here.

yccheok avatar Jan 02 '21 14:01 yccheok

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