当我试图存档时,我得到了以下错误-
Multiple commands produce '/Users/kumar/Library/Developer/Xcode/DerivedData/project-giaimtwxkjihslcrnslgrczdvfrm/Build/Intermediates.noindex/ArchiveIntermediates/project/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/AccessibilityResources.bundle':
1) Target 'React-Core.common-AccessibilityResources' has create directory command with output '/Users/kumar/Library/Developer/Xcode/DerivedData/project-giaimtwxkjihslcrnslgrczdvfrm/Build/Intermediates.noindex/ArchiveIntermediates/project/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/AccessibilityResources.bundle'
2) Target 'React-Core.common-Hermes-AccessibilityResources' has create directory command with output '/Users/kumar/Library/Developer/Xcode/DerivedData/project-giaimtwxkjihslcrnslgrczdvfrm/Build/Intermediates.noindex/ArchiveIntermediates/project/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/AccessibilityResources.bundle'
如果我从Pods中删除React-Core.common-AccessibilityResources
,共享扩展就不会构建,说明它需要这个Pod。
我用的堆栈-
RN - 0.64.2
React - 17.0.1
Node - 14.17.3
npm - 7.5.0
Xcode - 12.5.1
Macbook Air M1
发布于 2021-08-14 19:44:48
我发现,对于共享扩展,我的ReactNative配置与主应用程序不同,该应用程序需要两次导入依赖项。
这里有一个来自PodFile的片段
target 'project' do
...
use_react_native!(
:path => config[:reactNativePath],
:hermes_enabled => true
)
...
end
target 'shareExtension' do
...
use react_native!
...
end
对于共享扩展,我将配置替换为
target 'shareExtesion' do
use_react_native!(
:path => config[:reactNativePath],
:hermes_enabled => true
)
...
end
在Podfile
中进行此更改后,执行必要的清理、pod install
和它的工作。
https://stackoverflow.com/questions/68707341
复制相似问题