本文介绍了Xcode 12 错误:多个命令产生 AccessibilityResources.bundle的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
从 Xcode 构建我的 React Native 项目时出现以下错误;
Building my react native project from Xcode gives the error below;
Multiple commands produce '/Users/USERNAME/Library/Developer/Xcode/DerivedData/PROJECT-grjkuplqgvolxebnwadcuuhwkdak/Build/Intermediates.noindex/ArchiveIntermediates/PROJECT/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/AccessibilityResources.bundle':
1) Target 'React-Core.common-AccessibilityResources' has create directory command with output '/Users/USERNAME/Library/Developer/Xcode/DerivedData/PROJECT-grjkuplqgvolxebnwadcuuhwkdak/Build/Intermediates.noindex/ArchiveIntermediates/PROJECT/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/AccessibilityResources.bundle'
2) Target 'React-Core.common-CoreModulesHeaders-AccessibilityResources' has create directory command with output '/Users/USERNAME/Library/Developer/Xcode/DerivedData/PROJECT-grjkuplqgvolxebnwadcuuhwkdak/Build/Intermediates.noindex/ArchiveIntermediates/PROJECT/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/AccessibilityResources.bundle'
我检查了多个命令产生"错误的其他答案,但到目前为止没有运气.不过,它们主要与矢量图标有关.
I check other answers for 'multiple commands produce' error but no luck so far. They are mostly related to vector-icons though.
如何修复 AccessibilityResources 的这个错误?
How do I fix this error for AccessibilityResources?
推荐答案
Removing React-Core.common-AccessibilityResources
from target in Podfile
修复了问题.
Removing React-Core.common-AccessibilityResources
from target in Podfile
fixed the issue.
...
use_flipper!
post_install do |installer|
flipper_post_install(installer)
installer.pods_project.targets.each do |target|
if target.name == "React-Core.common-AccessibilityResources"
target.remove_from_project
end
end
end
...
这篇关于Xcode 12 错误:多个命令产生 AccessibilityResources.bundle的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!