【问题标题】:Xcode 11 Error: Multiple Commands produce... when trying to archive with new build systemXcode 11 错误:尝试使用新的构建系统归档时产生多个命令
【发布时间】:2020-01-23 14:03:25
【问题描述】:

我尝试使用 Xcode 中的新构建系统归档我的应用程序。我试图更新豆荚,但这没有帮助。我看不出这有什么问题。

这是我尝试存档时遇到的错误。

Multiple commands produce '/Users/damianvandekauter/Library/Developer/Xcode/DerivedData/Peral-gccnzsgqesdkhpgldsjorooqirpb/Build/Intermediates.noindex/ArchiveIntermediates/Peral/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/Parse.bundle':
1) Target 'Parse-iOS12.0-Parse' has create directory command with output '/Users/damianvandekauter/Library/Developer/Xcode/DerivedData/Peral-gccnzsgqesdkhpgldsjorooqirpb/Build/Intermediates.noindex/ArchiveIntermediates/Peral/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/Parse.bundle'
2) Target 'Parse-iOS9.0-Parse' has create directory command with output '/Users/damianvandekauter/Library/Developer/Xcode/DerivedData/Peral-gccnzsgqesdkhpgldsjorooqirpb/Build/Intermediates.noindex/ArchiveIntermediates/Peral/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/Parse.bundle'

我知道我可以回到旧版构建系统,但我更喜欢使用新的更快的构建系统。感谢您的帮助。

【问题讨论】:

    标签: ios xcode parse-platform


    【解决方案1】:

    在 Copy Bundle Resources 中删除重复的字体文件对我有用。

    问题似乎是由 React Native 0.60 中的新自动链接功能引起的 - 行 use_native_modules!在 ios/Podfile 中意味着当您进行 pod install 时,在 node_modules 中找到的任何 pod 都会自动链接。这意味着当您进行 pod install 时,所有字体文件的链接都会添加到 [CP] Copy Pods Resources。

    如果您之前通过将字体文件添加到 Copy Bundle Resources 手动安装了 react-native-vector-icons,则会收到“多个命令产生...”致命构建错误。

    所以要解决这个问题,只需从 Copy Bundle Resources 中删除字体文件,以便它们仅在 [CP] Copy Pods Resources 中。

    可以在项目目标的 Build Phases 选项卡下找到复制捆绑资源

    错误会解决

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-11-15
      • 2019-12-17
      • 1970-01-01
      • 2021-01-10
      • 1970-01-01
      • 1970-01-01
      • 2018-12-06
      相关资源
      最近更新 更多