Xcode React-native Archive 报错has a command with output

错误描述

Multiple commands produce '/Users/xx/Library/Developer/Xcode/DerivedData/xxapp-xxx/Build/Intermediates.noindex/ArchiveIntermediates/xxapp/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/libyoga.a':

  1. Target 'yoga' has a command with output '/Users/xx/Library/Developer/Xcode/DerivedData/xxapp-xxx/Build/Intermediates.noindex/ArchiveIntermediates/xxapp/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/libyoga.a'
  2. Target 'yoga' has a command with output '/Users/xx/Library/Developer/Xcode/DerivedData/xxapp-xxx/Build/Intermediates.noindex/ArchiveIntermediates/xxapp/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/libyoga.a'

React-native -> 0.58
Xcode 10.1
Cocoapods 1.6.0

问题定位
Xcode 10 版本 引入 创建系统(Build System)
Xcode 10使用了一个新的创建系统。新创建系统提供了更好的可靠性与创建性能,它可以获取项目配置问题,而legacy创建系统则不能。
但是RN 打包不了! 打包不了!
在File > Project/Workspace Settings页选择它。为legacy创建系统配置过的项目会在Activity View显示一个橘黄锤子标签

 




原文地址:https://www.cnblogs.com/sangwl/p/12810056.html