0

我正在尝试为 Google 的iOS 材质组件创建 Xamarin 绑定, 但在使用 Objective Sharpie 时收到有关缺少标头的错误。

第一步:

sharpie pod init ios MaterialComponents

结果:

Downloading dependencies
Installing MDFInternationalization (1.0.4)
Installing MDFTextAccessibility (1.2.0)
Installing MaterialComponents (48.0.0)
Installing MotionAnimator (2.8.1)
Installing MotionInterchange (1.6.0)
Installing MotionTransitioning (5.0.0)

第二步:

sharpie pod bind

结果:

build/Release-iphoneos/MaterialComponents/MaterialComponents.framework/Headers/MDCFeatureHighlightAccessibilityMutator.h:19:9: fatal error:
  'MDFTextAccessibility/MDFTextAccessibility.h' file not found
#import <MDFTextAccessibility/MDFTextAccessibility.h>

我试图将缺少的头文件从其他依赖库复制到 MaterialComponents.framework/Headers 文件夹中,但它仍然会导致最终失败。

/private/var/folders/jb/wcx6dzt15jl5n909kqg52hj00000gn /T/com.xamarin.ObjectiveSharpie/d70c609622ae4bb0b3ceaccfd8613bae.h:1:9: fatal  error:
  could not build module 'MaterialComponents'
  @import MaterialComponents;

当 MaterialComponents 片段引用其他库时,如何让 Objective Sharpie 创建绑定?

4

0 回答 0