upgrade-support: Xcode 12.5 causing CompileC build command failure on Flipper-Folly pod

Environment

System:
    OS: macOS 11.3
    CPU: (16) x64 Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
    Memory: 1.65 GB / 32.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 12.18.3 - /var/folders/v6/c3r2djmd7r51n2zbt82r59r80000gn/T/yarn--1619527993921-0.11460043057082148/node
    Yarn: 1.22.4 - /var/folders/v6/c3r2djmd7r51n2zbt82r59r80000gn/T/yarn--1619527993921-0.11460043057082148/yarn
    npm: 6.14.6 - ~/.nvm/versions/node/v12.18.3/bin/npm
    Watchman: Not Found
  Managers:
    CocoaPods: 1.9.3 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: iOS 14.5, DriverKit 20.4, macOS 11.3, tvOS 14.5, watchOS 7.4
    Android SDK:
      API Levels: 28, 29, 30
      Build Tools: 28.0.3, 29.0.2, 29.0.3, 30.0.1
      System Images: android-29 | Intel x86 Atom_64, android-30 | Google APIs Intel x86 Atom, android-30 | Google Play Intel x86 Atom
      Android NDK: Not Found
  IDEs:
    Android Studio: 4.0 AI-193.6911.18.40.6626763
    Xcode: 12.5/12E262 - /usr/bin/xcodebuild
  Languages:
    Java: 1.8.0_265 - /usr/bin/javac
    Python: 2.7.16 - /usr/bin/python
  npmPackages:
    @react-native-community/cli: Not Found
    react: 16.13.1 => 16.13.1 
    react-native: 0.63.2 => 0.63.2 
    react-native-macos: Not Found

Things I’ve done to figure out my issue

Upgrading version

Description

After updating Xcode to 12.5, when trying to run my app for development in a simulator (iOS 14.5), I get the following error:

The following build commands failed:
        CompileC /Users/alex.hooper/Library/Developer/Xcode/DerivedData/Espresso-brgntaoyjolqyfdzcsunjlqtzzum/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/Flipper-Folly.build/Objects-normal/arm64/DistributedMutex.o /Users/alex.hooper/Documents/figloo-bank-mobile/ios/Pods/Flipper-Folly/folly/synchronization/DistributedMutex.cpp normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler

I have tried updating the flipper-folly pods to 2.5.1 and specifying this in my podfile with use_flipper!({ 'Flipper-Folly' => '2.5.1' }) however this has not solved the issue. I have also tried deleting my podfile.lock file, clearing the pod cache and that has not helped either.

Reproducible demo

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Reactions: 13
  • Comments: 34

Commits related to this issue

Most upvoted comments

Also had an issue with Flipper-Folly for new Xcode version 12.5. I resolved this issue by commending these code in Podfile:

# use_flipper! # post_install do |installer| # flipper_post_install(installer) # end

Solution without losing Flipper functionality:

Define the upgraded dependencies for Flipper in the Podfile

React Native 62

def add_flipper_pods!(versions = {})
  versions['Flipper'] ||= '~> 0.87.0' 
  versions['DoubleConversion'] ||= '1.1.7'
  versions['Flipper-Folly'] ||= '~> 2.5.3' 
  versions['Flipper-Glog'] ||= '0.3.6'
  versions['Flipper-PeerTalk'] ||= '~> 0.0.4'
  versions['Flipper-RSocket'] ||= '~> 1.3.1' 

React Native 63

  use_flipper!({'Flipper' => '0.87.0' , 'Flipper-Folly' => '2.5.3' , 'Flipper-RSocket' => '1.3.1' })
  post_install do |installer|
    flipper_post_install(installer)
  end

cd ios && pod install and you should be good to go

React Native 64

Bump the version to 0.64.1 in the package.json

yarn install && pod install --repo-update && react-native run-ios

https://github.com/facebook/react-native/releases/tag/v0.64.1

reference link: https://stackoverflow.com/a/67401311/6776378

This worked for me without having to comment out flipper-folly in the podfile:

use_flipper!({‘Flipper’ => ‘0.87.0’ , ‘Flipper-Folly’ => ‘2.5.3’ , ‘Flipper-RSocket’ => ‘1.3.1’ }) post_install do |installer| flipper_post_install(installer) end

Then: delete podfiles folder delete podfile.lock pod install --repo-update

I’m running: React Native Version: 0.64.0 Xcode version: 12.5

Hope this helps 👍

Also had an issue with Flipper-Folly for new Xcode version 12.5. I resolved this issue by commending these code in Podfile:

# use_flipper! # post_install do |installer| # flipper_post_install(installer) # end

it’s work for me!

Any solution that works with react-native v0.66.0?

Update react-native-reanimated to 2.3.0-beta.2 or higher.

This somehow worked for me. I don’t know how it happened so I will share the steps I did.

after the Flipper error I comment just this line in ios/Podfile

# use_flipper!()

image

and did pod install which removed the flipper dependencies.

image

then run the project “npx react-native run-ios”

then project is successfully working now so then I removed the comment of flipper and and did the pod install again

image

image

And This is it.

I hope this helps.

some version Info:-

node: 16.13.2 (LTS) npm: 8.1.2

package.json:-

“dependencies”: { “react”: “17.0.2”, “react-native”: “0.67.2”, }, “devDependencies”: { “@babel/core”: “7.16.12”, “@babel/runtime”: “7.16.7”, “@react-native-community/eslint-config”: “2.0.0”, “babel-jest”: “26.6.3”, “eslint”: “7.14.0”, “jest”: “26.6.3”, “metro-react-native-babel-preset”: “0.66.2”, “react-test-renderer”: “17.0.2” },

@droplessjordan Awesome - the Podfile change did the trick for me - thank you so much!!

XCode 12.5, React Native 0.64.1, Big Sur

Getting the same error on react native 0.64.2 and xcode 12.5.1

same here, spent all my day and still can’t figure out 😦

@bimemto I used https://react-native-community.github.io/upgrade-helper/ and noticed I was missing somethings. I downgraded to react native 0.64.1 and added the following to my Podfile:

platform :ios, '11.0'

pod 'Stripe', '~> 19.4.0'

  use_flipper!()
  post_install do |installer|
    react_native_post_install(installer)
  end

and it worked. Hope it does for you too!