【问题标题】:duplicate interface definition for class 'art brush' In React NativeReact Native中类“艺术画笔”的重复接口定义
【发布时间】:2020-04-22 05:53:58
【问题描述】:

我在安装 pod 后安装了 @react-native-community/art,它应该为类“艺术画笔”产生一个重复的接口定义问题

【问题讨论】:

    标签: ios react-native cocoapods


    【解决方案1】:

    您遇到了问题,因为软件包没有正确安装,所以请按照以下步骤操作。 对于 react-native >= 0.60 ReactNativeART 应该是自动链接的,不需要额外的操作。但是对于 react-native

    react-native 链接 @react-native-community/art 如果仍然无法正常工作,您可以手动完成, ![ Open project.xcodeproj in Xcode Drag RNCSlider.xcodeproj to your project on Xcode (usually under the Libraries group on Xcode ):]1 然后 ![ Link libART.a binary with libraries Click on your main project file (the one that represents the .xcodeproj) select Build Phases and drag the static library from the Products folder inside the Library you are importing to Link Binary With Libraries (or use the + sign and choose library from the list ):]2

    就是这样,希望对你有帮助

    【讨论】:

      猜你喜欢
      • 2018-04-01
      • 1970-01-01
      • 1970-01-01
      • 2017-02-01
      • 2012-07-10
      • 2012-05-30
      • 2014-02-09
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多