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

0.60.5 ios 集成报错 'RNTXingePush/RNTXingePushModule.h' file not found #7

Closed
charmtiger opened this issue Sep 12, 2019 · 9 comments

Comments

@charmtiger
Copy link

步骤是yarn add
pod install
引入 libs
将 libXGSDK.a 引入到 framework

AppDelegate.m:17:9: fatal error: 'RNTXingePush/RNTXingePushModule.h' file not found
#import <RNTXingePush/RNTXingePushModule.h>
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
@musicode
Copy link
Owner

@caigehui 看看咯,你升级的部分是不是有 bug 啊

@charmtiger
Copy link
Author

charmtiger commented Sep 15, 2019

补充一下 我注释了 #import <RNTXingePush/RNTXingePushModule.h>
然后就报了如下错误
image

image
@caigehui 希望大佬看一下这个问题

@musicode
Copy link
Owner

本来我的计划是十月份中旬以后才可能会升级 0.60,但 @caigehui 提了一个 pr,在我自己升级之前,暂时没有时间处理 pr 带来的 bug(本来就是因为没时间才没升级...)。

@charmtiger 可以先退到 0.59,等我升级之后我再到此 issue 通知你,如果 @caigehui 暂时没空修复 bug,只能先这样了

@caigehui
Copy link
Contributor

caigehui commented Sep 17, 2019

@charmtiger @musicode 因为RN>=0.60默认是通过cocoapods引入,所以去掉前缀就可以了:

#import <RNTXingePush/RNTXingePushModule.h>

#import <RNTXingePushModule.h>

@musicode
Copy link
Owner

@caigehui 谢谢~
@charmtiger 试试呗,没问题就关掉 issue 吧

@charmtiger
Copy link
Author

charmtiger commented Sep 17, 2019

经过尝试还是报错
image
@caigehui

补充一下我的library引入
image

@caigehui
Copy link
Contributor

caigehui commented Sep 18, 2019

@charmtiger 报错是因为没找到信鸽的sdk,可尝试:

  1. 引入的时候选create groups而不是create folder references,建议直接加入到ios目录下
  2. clean一下再build
  3. 新建一个工程来引入该库,测试是否可行,因为我这里都是在新工程中测试的

最后如果实在不行,可提供一个能复现问题的仓库,我来看看是什么原因

@charmtiger
Copy link
Author

问题已解决
原因就是: 引入的时候选create groups而不是create folder references

@musicode
Copy link
Owner

最新版不用自己添加库了,yarn add 完直接 cd ios && pod install 就完事

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

3 participants