【发布时间】:2020-11-14 20:47:36
【问题描述】:
我在为 iOS 构建我的 react 原生应用时遇到了问题。对于 android,它构建得非常好。对于 iOS,项目将构建但不会存档。这是尝试归档我的项目时的错误代码:
1) Target 'React-Core.common-AccessibilityResources' has create directory command with output '/Users/jacobcarpenter/Library/Developer/Xcode/DerivedData/LFGOPocker-gaqwcsmtamkdjtbdiwhnzcvmexjk/Build/Intermediates.noindex/ArchiveIntermediates/LFGOPocker/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/AccessibilityResources.bundle'
2) Target 'React-Core.common-CoreModulesHeaders-AccessibilityResources' has create directory command with output '/Users/jacobcarpenter/Library/Developer/Xcode/DerivedData/LFGOPocker-gaqwcsmtamkdjtbdiwhnzcvmexjk/Build/Intermediates.noindex/ArchiveIntermediates/LFGOPocker/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/AccessibilityResources.bundle'
有几件事要说明: 运行 React-native 0.63, Podfile 和部署目标都在 11 上
编辑:从命令行运行时收到此错误
'/Users/jacobcarpenter/Library/Developer/Xcode/DerivedData/LFGOPocker-bzowsupbiktzuzaaadvokqxbgvzq/Build/Intermediates.noindex/ArchiveIntermediates/LFGOPocker/BuildProductsPath/Release-iphoneos/YogaKit/YogaKit.modulemap'
not found```
【问题讨论】:
-
尝试以下两个选项。 01) 使用传统模式构建应用程序(文件 > 工作区设置 > 构建系统 > 传统构建系统)。 02) 删除所有 pod,重新安装 pod
-
我在以下链接中的回答可能对某些人有所帮助 - stackoverflow.com/a/68786521/6512858
标签: ios reactjs react-native