Xcode 10: third-party: 'config.h' file not found

第一步: 进入项目目录,输入:

//glog-0.3.4要根据目录自己的而定
cd node_modules/react-native/third-party/glog-0.3.4 

第二步: 执行:

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

执行完,上个命令如果遇到以下错误:

configure: error: in /Users/macmini1/Downloads/react-native-youtube-master/example/node_modules/react-native/third-party/glog-0.3.4’: configure: error: C compiler cannot create executables See config.log’ for more details

解决办法: 在当前目录执行下面的命令:

./configure --host arm-apple-darwin

当我们使用Xcode10 编译运行之前的RN项目时,报如下错误时:

error:Build input file cannot be found:’/Users/…/Libraries/WebSocket/libfishhook.a’

在这里插入图片描述

报这种错误说明在node_modules中没有找到对应的libfishhook.a库,说明该库的文件路径可能发生了变化导致。解决办法:
在这里插入图片描述

最后,Clean,使用Xcode build项目。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值