React Native 0.63 iOS 在 Release 时 报错:YogaKit/YogaKit.modulemap' not found

React Native 2020-11-09 阅读 865 评论 0

问题描述

Xcode 12,React Native 升级到 0.63.2 时,尝试发布 iOS 项目,但是编译的时候报错了。

fatal error: module map file '/Users/cpm/Library/Developer/Xcode/DerivedData/staff-baeadsoaaiirtjhfudonotievuex/Build/Products/Release-iphoneos/YogaKit/YogaKit.modulemap' not found

解决方法

在 Xcode 中,点击 Project,在 Info 标签中,设置 iOS Deployment Target 为 11.0。重新编译。


最后更新 2020-11-09
MIP.watch('startSearch', function (newVal, oldVal) { if(newVal) { var keyword = MIP.getData('keyword'); console.log(keyword); // 替换当前历史记录,新增 MIP.viewer.open('/s/' + keyword, {replace: true}); setTimeout(function () { MIP.setData({startSearch: false}) }, 1000); } }); MIP.watch('goHome', function (newVal, oldVal) { MIP.viewer.open('/', {replace: false}); });