DeviceInfo本机模块未正确安装 [英] DeviceInfo native module is not installed correctly

查看:527
本文介绍了DeviceInfo本机模块未正确安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我尝试实施Facebook登录,并按照所有步骤进行。在发现错误 FBSDKcorekit / FBSDKcorekit.h'文件未找到后,我决定转向使用其他组件。

So I tried implementing Facebook Login and followed all the steps accordingly. After having errors with FBSDKcorekit/FBSDKcorekit.h' file not found, I decided to pivot over to working on other components.

Lo'看来,我有这个错误给我麻烦了。我跟着这个视频: https://www.youtube.com/watch? v = rAXVKapP5cM& t = 458s ,其中我使用 react-native安装react-native-fbsdk 反应原生链接反应 - 我的终端中的native-fbsdk 命令。

Lo' and behold, I have this error giving me trouble now. I followed along with this video: https://www.youtube.com/watch?v=rAXVKapP5cM&t=458s where I used the react-native install react-native-fbsdk and react-native link react-native-fbsdk commands in my terminal.

如果有帮助,我的终端会收到以下编译错误:
以下构建命令失败:

If it helps, I'm getting the following compile error in my terminal: The following build commands failed:

CompileC /Users/someUser/desiredProject/ios/build/Build/Intermediates/RCTFBSDK.build/Debug-iphonesimulator/RCTFBSDK.build/Objects-normal/x86_64/RCTFBSDKGraphRequestManager.o RCTFBSDK/core/RCTFBSDKGraphRequestManager.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler

(1失败)

我不知道这是否是修补周围有 react-native-fbsdk 或链接到导致此错误的链接。注意我的项目正在尝试实施Facebook登录并使用链接命令。

I'm not sure if it was the tinkering around with the react-native-fbsdk or making links to it that caused this error. Note my project was working before I was trying to implement Facebook Login and using the link command.

发生了什么在这里?

提前感谢您的时间和耐心。

Thanks in advance for your time and patience.

编辑:还没有实现任何Facebook登录代码,因为我无法在Xcode上成功构建。

edit: Also I did not implement any of the Facebook login code yet since I couldn't get a successful build on Xcode.

推荐答案

@kdizzle确保你有权利包装商在终端上运行,有时候可能有一个包装商与另一个反应本机项目相关联,这是因为当您停止运行xcode RN项目时,它不会停止终端中的打包程序,并且当您启动/打开另一个RN项目在xcode,它只是检查包装商是否正在运行,不检查它是否与当前项目相关联。因此,请确保您终止了终端中的所有打包程序实例,然后再次打开RN项目。

@kdizzle Make sure you have the right packager running in the terminal, sometimes you may have a packager associated with another react native project running, this happens because when you stop running an xcode RN project, it doesn't stop the packager in the terminal, and when you start/open another RN project in xcode, it simply checks if a packager is running, doesn't check if it's associated with the current project. So make sure you stop all of the packager instances in the terminal and then open the RN project again.

这篇关于DeviceInfo本机模块未正确安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆