Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 427
Robert Coroianu Avatar asked Dec 22 '25 02:12

Robert Coroianu


1 Answers

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
like image 173
Vikas Chowdhury Avatar answered Dec 24 '25 15:12

Vikas Chowdhury



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!