Skip to content

libRCTMJRefreshHeader.a找不到问题还是没有解决啊!! #43

@geniu-vs

Description

@geniu-vs

react-native项目中接入MJRefresh,link完,debug没问题,打包报错:
clang: error: no such file or directory: ‘***/Intermediates.noindex/ArchiveIntermediates/KnowBall/BuildProductsPath/Release-iphoneos/libRCTMJRefreshHeader.a’

按#11的办法,将 RCTMJRefreshHeader lib 加入 Build Phases -> Target Dependencies 中,并将Build Phases -> Link Binary With Libraries中的libRCTMJRefreshHeader.a删掉。

打包是成功了,然而运行起来出问题了。

2019-06-21 09:23:44.070 [error][tid:com.facebook.react.JavaScript] Invariant Violation: requireNativeComponent: "RCTMJRefreshView" was not found in the UIManager.

This error is located at:
in RCTMJRefreshView

然后找到"RCTMJRefreshView" was not found in the UIManager解决方案里,解决方法是把libRCTMJRefreshHeader.a加到Link Binary With Libraries里,
大哥我就是这一步错了才搞到Target Dependencies里的,你这不就死循环了吗?

到底有没有一个完整的解决方案?

项目环境: target最低支持9.0, react-native:0.57.8
测试环境: iOS12.1.4 真机

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions