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.
I have also faced the exact same issue after upgrading React Native from 0.62.3 to 0.73.9. Below is the only fix that resolved the issues while archiving App for the release. Debug was already working fine. In PodFile under post_install do |installer| Add below lines and do pod install and try to archive again.
installer.pods_project.targets.each do |target|
if target.name == "RCT-Folly.common"
target.remove_from_project
end
end
Here is the entire post_install
post_install do |installer|
react_native_post_install(
installer,
config[:reactNativePath],
:mac_catalyst_enabled => false
)
installer.pods_project.targets.each do |target|
if target.name == "RCT-Folly.common"
target.remove_from_project
end
end
end
end
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With