Skip to content

请问当 react-native 版本 >0.59 时要怎样使用 ? #669

Closed
@SteveChina

Description

@SteveChina

My environment:

react-native version: 0.60
aurora-imui-react-native version: 0.10.1

Activity

jeromehan

jeromehan commented on Dec 11, 2019

@jeromehan

My environment:

react-native version: 0.60
aurora-imui-react-native version: 0.10.1

image
image
修改图中2处,把lReact lWebSocket链接库干掉。因为直接引入Pods Headers就不需要配置other Link了
image
主项目引入相关库就完美了。
image

cnpmge

cnpmge commented on Jan 9, 2020

@cnpmge

My environment:

react-native version: 0.60
aurora-imui-react-native version: 0.10.1

image
image
修改图中2处,把lReact lWebSocket链接库干掉。因为直接引入Pods Headers就不需要配置other Link了
image
主项目引入相关库就完美了。
image

你的图都看不到了,能单独发我一份吗?

SteveChina

SteveChina commented on Jan 9, 2020

@SteveChina
Author

My environment:

react-native version: 0.60
aurora-imui-react-native version: 0.10.1

image
image
修改图中2处,把lReact lWebSocket链接库干掉。因为直接引入Pods Headers就不需要配置other Link了
image
主项目引入相关库就完美了。
image

你的图都看不到了,能单独发我一份吗?

点击查看图片是可以看到的。

SteveChina

SteveChina commented on Jan 9, 2020

@SteveChina
Author

My environment:

react-native version: 0.60
aurora-imui-react-native version: 0.10.1

image
image
修改图中2处,把lReact lWebSocket链接库干掉。因为直接引入Pods Headers就不需要配置other Link了
image
主项目引入相关库就完美了。
image

非常感谢!最近在做其他项目,还没有验证,验证后再反馈验证结果。

SteveChina

SteveChina commented on Jan 9, 2020

@SteveChina
Author

My environment:

react-native version: 0.60
aurora-imui-react-native version: 0.10.1

image
image
修改图中2处,把lReact lWebSocket链接库干掉。因为直接引入Pods Headers就不需要配置other Link了
image
主项目引入相关库就完美了。
image

你的图都看不到了,能单独发我一份吗?

本人还没有验证该方法,验证后请反馈一下验证结果给大家,谢谢!

cnpmge

cnpmge commented on Jan 9, 2020

@cnpmge

My environment:

react-native version: 0.60
aurora-imui-react-native version: 0.10.1

image
image
修改图中2处,把lReact lWebSocket链接库干掉。因为直接引入Pods Headers就不需要配置other Link了
image
主项目引入相关库就完美了。
image

非常感谢!最近在做其他项目,还没有验证,验证后再反馈验证结果。

谢谢你,我已经运行成功了,非常感谢

liumin007

liumin007 commented on Jan 9, 2020

@liumin007

主项目引入相关库就完美了。 卡在这一步,这两个frameWork保存在哪里的,项目里没有啊

jeromehan

jeromehan commented on Jan 9, 2020

@jeromehan

主项目引入相关库就完美了。 卡在这一步,这两个frameWork保存在哪里的,项目里没有啊

手动引入的aurora-imui

jeromehan

jeromehan commented on Jan 9, 2020

@jeromehan

主项目引入相关库就完美了。 卡在这一步,这两个frameWork保存在哪里的,项目里没有啊

image
引入之后,点击加号

cnpmge

cnpmge commented on Jan 9, 2020

@cnpmge

项目下的Libraries引入添加RCTAuroraIMUI.xcodeproj,然后再添加就有了

liumin007

liumin007 commented on Jan 9, 2020

@liumin007

cocoapods导入的咋弄呢

cnpmge

cnpmge commented on Jan 9, 2020

@cnpmge

删了,然后手动不就行了,而且cocopods应该警告你没有这个库吧

liumin007

liumin007 commented on Jan 9, 2020

@liumin007

对啊,这个东西只能手动是吧

2 remaining items

SteveChina

SteveChina commented on Feb 23, 2020

@SteveChina
Author

Great!

whytimber

whytimber commented on Mar 4, 2020

@whytimber

My environment:

react-native version: 0.60
aurora-imui-react-native version: 0.10.1

image
image
修改图中2处,把lReact lWebSocket链接库干掉。因为直接引入Pods Headers就不需要配置other Link了
image
主项目引入相关库就完美了。
image

非常感谢!最近在做其他项目,还没有验证,验证后再反馈验证结果。

谢谢你,我已经运行成功了,非常感谢

能上传一下demo吗

yz1311

yz1311 commented on Aug 1, 2020

@yz1311

@jeromehan 谢谢,差点放弃了,这个库真是坑死人了,0.62及以上的版本还要注意,移除掉Flipper相关代码,不然会报错

search110

search110 commented on Aug 3, 2020

@search110

react-native version: 0.62.0
aurora-imui-react-native version: 0.14.0
手动添加后run-ios 失败、项目跑不起来
当unlink后、Invariant Violation: requireNativeComponent: "RCTMessageListView" was not found in the UIManager.
不知有如何解决

HHuiHao

HHuiHao commented on Aug 13, 2020

@HHuiHao

0.62以上,除了修改上述配置外,移除掉Flipper相关代码,就能run成功啦!
1、注释掉Podfile里的:

#  add_flipper_pods!
#  post_install do |installer|
#    flipper_post_install(installer)
#  end

2、注释掉AppDelegate.m里的相关'Flipper'代码

magiclove

magiclove commented on Aug 14, 2020

@magiclove

我按照上面的操作会报如下错误
react-native version: 0.63.2
aurora-imui-react-native version: 0.10.5

In file included from /Users/ihk.xtb/reactNativeCode/apptest/node_modules/aurora-imui-react-native/ReactNative/ios/RCTAuroraIMUI/RCTInputView.m:9:
/Users/ihk.xtb/reactNativeCode/apptest/node_modules/aurora-imui-react-native/ReactNative/ios/RCTAuroraIMUI/RCTInputView.h:12:9: fatal error: 'React/RCTComponent.h' file not found
#import <React/RCTComponent.h>
^~~~~~~~~~~~~~~~~~~~~~

zjz1993

zjz1993 commented on Sep 1, 2020

@zjz1993

没成功的同学可以看我这边
react-native:0.61.2
aurora-imui-react-native 0.14.0
配置如下图所示
image
image
亲测可build成功

qq1052504303

qq1052504303 commented on May 16, 2021

@qq1052504303

图片的软件是什么呀,找不到该图片

SteveChina

SteveChina commented on May 17, 2021

@SteveChina
Author

图片的软件是什么呀,找不到该图片

xcode

BeMxself

BeMxself commented on Feb 22, 2022

@BeMxself

xcode13下按照这个方法编译不过

My environment:

react-native version: 0.60
aurora-imui-react-native version: 0.10.1

image image 修改图中2处,把lReact lWebSocket链接库干掉。因为直接引入Pods Headers就不需要配置other Link了 image 主项目引入相关库就完美了。 image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @SteveChina@BeMxself@liumin007@HHuiHao@yz1311

        Issue actions

          请问当 react-native 版本 >0.59 时要怎样使用 ? · Issue #669 · jpush/aurora-imui