shared_timed_mutex' is unavailable: introduced in iOS 10.0

See original GitHub issue

Description

I upgraded my RN project from 0.63.2 to 0.64 with react-native upgrade

After the upgrade I’m not able to build the project anymore. I get 6 errors in RCTTurboModuleManager. All 6 says the same thing.

image

Tried stuff…

I have tried the following:

  • rm -rf node_modules && npm install
  • rm -rf ios/Pods
  • rm Podfiles.lock
  • pod install
  • watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf $TMPDIR/metro-* && rm -rf $TMPDIR/haste-*
  • Clean Bulld Folder from XCode

My build target is 10.0, but I also tried to bump it to 11.0. This disn’t work either.

React Native version:

System: OS: macOS 10.15.7 CPU: (16) x64 Intel® Core™ i9-9880H CPU @ 2.30GHz Memory: 1.24 GB / 16.00 GB Shell: 3.2.57 - /bin/bash Binaries: Node: 12.21.0 - ~/.nvm/versions/node/v12.21.0/bin/node Yarn: Not Found npm: 6.14.11 - ~/.nvm/versions/node/v12.21.0/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman Managers: CocoaPods: 1.10.1 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: iOS 14.4, DriverKit 20.2, macOS 11.1, tvOS 14.3, watchOS 7.2 Android SDK: Not Found IDEs: Android Studio: Not Found Xcode: 12.4/12D4e - /usr/bin/xcodebuild Languages: Java: javac 15 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: 17.0.1 => 17.0.1 react-native: 0.64.0 => 0.64.0 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7

github_iconTop GitHub Comments

18reactions
msagerydcommented, Mar 26, 2021

Sorry for bothering with my issue. It turned out that I was responsible for this, not RN. Closing this.

I had an old manual fix in my Podfiles to fix some pods not wanting to be “No bitcode”. In the same code I had hard coded the target.

    installer.pods_project.targets.each do |target|
      target.build_configurations.each do |config|
        config.build_settings['ENABLE_BITCODE'] = 'NO'
          config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
      end
    end
0reactions
thisisgitcommented, Dec 27, 2021

I also had this issue while upgrading from 0.63.4 to 0.66.4 Resolved it by setting config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '10.0'

post_install do |installer|
  react_native_post_install(installer)
  __apply_Xcode_12_5_M1_post_install_workaround(installer)

  # This is to resolve "'shared_timed_mutex' is unavailable: introduced in iOS 10.0" error
  installer.pods_project.targets.each do |t|
    t.build_configurations.each do |config|
      config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '10.0'
    end
  end
end
Read more comments on GitHub >

github_iconTop Results From Across the Web

XCode 9.2 'shared_timed_mutex' is unavailable: introduced in ...
I'm running Mac OS 10.13.3 with XCode 9.2 which is giving the error "'shared_timed_mutex' is unavailable: introduced in macOS 10.12".
Read more >
MacOS c++ 17 build failures due to missing "shared_mutex" in ...
Note the error is error: 'shared_mutex' is unavailable: introduced in macOS 10.12 which means it is supported, but only if you target macOS...
Read more >
#57109 (cquery @20180718 shared_timed_mutex introduced ...
cquery @20180718 shared_timed_mutex introduced in macOS 10.12 ... note: 'shared_timed_mutex' has been explicitly marked unavailable here.
Read more >
shared_mutex type name not found | Apple Developer Forums
I'm able to include shared_mutex header in my project by: #include <shared_mutex>. and I'm able to see the shared mutex definitions.
Read more >
3.16.0 FTBFS on osx: error: 'shared_mutex' is unavailable ...
3.16.0 FTBFS on osx: error: 'shared_mutex' is unavailable: introduced in macOS 10.12. We're trying to update to 3.16.0 in conda-forge with ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found