- 升级 Xcode 后 'config.h' file not found
解决办法
cd node_modules/react-native/third-party/glog-0.3.4
../../scripts/ios-configure-glog.sh
2.'React/RCTBundleURLProvider.h' file not found
Xcode 左侧点击跟项目目录 -> 选择右侧 Build Settings -> 选择 All & Combined -> 搜索框输入 Always Search User Paths -> 将 Always Search User Paths 设置为 Yes -> Clean -> Build
图2
3.js 中使用 parseFloat 损失精度问题
const num4 = "1.12"
const num5 = parseFloat(num4)*10000
console.log(num5)//11199.9999999
扩大一定的倍数,对结果在缩小这个倍数
var num1=parseFloat("234432.9")*1000000000000;
var num2=parseFloat("0.2")*1000000000000;
var num3=(num1-num2)/1000000000000;
4.编译React Native IOS工程时,出现错误“fatal error: 'React/RCTEventEmitter.h' file not found”
xCode menu -> Product -> Scheme -> Manage Shemes...
Double click on your application
Build tab -> clear the tick on Pallelize Build
Scheme
clear the tick on Pallelize Build
错误将持续更新
网友评论