React Native 报错 `no such file or directory&'config.h' file not found`

React-native碰到的坑和解决方案

 

<React/RCTXXXXX.h> file no found

1. Clean (cmd+shift+K)

2. Build core React - select React as the scheme in Xcode and build it (cmd+B)

3. Build the library that is failing (e.g. RCTText).

4. Build your app.

 

 

no such file or directory XXXX文件找不到

在build phases => complie sources 下面找到文件删了 重新编译

 

5.BackAndroid已被弃用。请改用BackHandler

6. keyboardShouldPersistTaps={true}废除,改用keyboardShouldPersistTaps='always'

7. SVG画图不要用<use/>会闪退

 

'config.h' file not found

React-native碰到的坑和解决方案

 

<React/RCTXXXXX.h> file no found

1. Clean (cmd+shift+K)

2. Build core React - select React as the scheme in Xcode and build it (cmd+B)

3. Build the library that is failing (e.g. RCTText).

4. Build your app.

 

 

no such file or directory XXXX文件找不到

在build phases => complie sources 下面找到文件删了 重新编译

 

5.BackAndroid已被弃用。请改用BackHandler

6. keyboardShouldPersistTaps={true}废除,改用keyboardShouldPersistTaps='always'

7. SVG画图不要用<use/>会闪退

 

'config.h' file not found

 

cd node_modules/react-native/third-party/glog-0.3.4

../../scripts/ios-configure-glog.sh

(replace glog-0.3.X with yours)

replace with `NULL`

 

Remove library libfishhook.a and add again

 

报错:在xcode 10上报这个错 error: unable to spawn process (Argument list too long)

解决:这应该是Xcode的一个bug,跟项目存放的位置太深有关
把项目放到根路径就好了

 

 

 

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值