Error: Multiple commands produce '.../folly.framework'

30 views Asked by At

After I've upgraded react-native to 0.73.4 I've encountered an issue while trying to Archive my Xcode project.

Multiple commands produce '/Users/user/Library/Developer/Xcode/DerivedData/MyKeyPaaS-dvusobjtabyvaehceuotkxpwtbph/Build/Intermediates.noindex/ArchiveIntermediates/ProjectName/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/folly.framework'

Update:

Target 'RCT-Folly.common' (project 'Pods') has create directory command with output '/Users/robert.coroianu/Library/Developer/Xcode/DerivedData/MyKeyPaaS-dvusobjtabyvaehceuotkxpwtbph/Build/Intermediates.noindex/ArchiveIntermediates/MyKeyPaaS/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/folly.framework'

    
Target 'RCT-Folly.common-Fabric' (project 'Pods') has create directory command with output '/Users/robert.coroianu/Library/Developer/Xcode/DerivedData/ProjectName-dvusobjtabyvaehceuotkxpwtbph/Build/Intermediates.noindex/ArchiveIntermediates/ProjectName/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/folly.framework'

I want to mention that for Dev Build the project works very well.

1

There are 1 answers

2
Aqeel Ahmad On

Deintegrate the pods:

cd ios

pod deintegrate

Remove the Podfile and Podfile.lock:

rm -rf Podfile
rm -rf Podfile.lock

Remove the build folder:

rm -rf build

Remove the userdata:

rm -rf ~/Library/Developer/Xcode/DerivedData/

Update the pods:

pod update

run application:

cd ..

yarn ios or npx react-native run-ios

or archi from xcode, hope it will help