Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
SteveChina opened this issue Dec 10, 2019 · 25 comments
Closed

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

SteveChina opened this issue Dec 10, 2019 · 25 comments

Comments

@SteveChina
Copy link

My environment:

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

@jeromehan
Copy link

jeromehan commented Dec 11, 2019

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
Copy link

cnpmge commented Jan 9, 2020

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
Copy link
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
Copy link
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
Copy link
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
Copy link

cnpmge commented Jan 9, 2020

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
Copy link

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

@jeromehan
Copy link

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

手动引入的aurora-imui

@jeromehan
Copy link

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

image
引入之后,点击加号

@cnpmge
Copy link

cnpmge commented Jan 9, 2020

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

@liumin007
Copy link

cocoapods导入的咋弄呢

@cnpmge
Copy link

cnpmge commented Jan 9, 2020

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

@liumin007
Copy link

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

@jeromehan
Copy link

cocoapods导入的咋弄呢

cocoapods 导入的只能用在iOS开发的,不能是RN开发的,RN开发的需要手动导入工程

@jeromehan
Copy link

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

README写的很清楚了

@SteveChina
Copy link
Author

Great!

@whytimber
Copy link

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
Copy link

yz1311 commented Aug 1, 2020

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

@search110
Copy link

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
Copy link

HHuiHao commented Aug 13, 2020

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

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

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

@magiclove
Copy link

我按照上面的操作会报如下错误
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
Copy link

zjz1993 commented Sep 1, 2020

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

@qq1052504303
Copy link

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

@SteveChina
Copy link
Author

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

xcode

@BeMxself
Copy link

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests