folly: Folly DistributedMutex using unavailable methods.
Using the latest XCode beta with a React Native app, Folly is failing to build due to an unavailable method being called within DistributedMutex-inl.h, as shown below.

About this issue
- Original URL
- State: open
- Created 3 years ago
- Reactions: 18
- Comments: 16 (4 by maintainers)
Links to this issue
Commits related to this issue
- Explicitly qualify atomic_wait and atomic_notify function calls Summary: `std::atomic_wait()` and `std::atomic_notify_one()` are marked as unavailable. Not really sure what that means, but it seems t... — committed to facebook/folly by aary 3 years ago
- Explicitly qualify atomic_wait and atomic_notify function calls Summary: `std::atomic_wait()` and `std::atomic_notify_one()` are marked as unavailable. Not really sure what that means, but it seems t... — committed to 5448C8/folly by aary 3 years ago
Xcode 12.5 has been released. Is there a workaround for this? I can’t build anything right now 😬 After a prompt last night upgraded my iPhone to iOS 14.5, and was subsequently forced by Xcode to upgrade to 12.5 today, now I can’t work at all
Happy to help where I can but don’t know my way around the RN codebase particularly well, it’s pretty daunting!
Edit: If anyone else comes across this, looks like a fix has been pushed but not released yet. Workaround in the meantime - https://github.com/facebook/flipper/issues/2215#issuecomment-827422023
Apologies for addressing this a bit late. We have a potential fix, working on it…
Manually editing the Flipper-Folly pod file just pushes the compile error onto a subsequent Flipper pod, and does not fix the issue for me 😦 When I try to disable Flipper in the podfile, I get this when trying to build the app:
So I’m pretty stuck right now, any suggestions massively appreciated as I think a lot of people are in this situation.
React Native builds are also broken because of this.
@Orvid Like we said it’s not a commit it’s the Xcode Beta itself that breaks this.
Happening for me too. Please address this. Xcode release is coming out like tomorrow.
Upstream flipper podspecs should be updated.
Now facing this issue, commenting out flipper post install portion does not work for me. Started happening after I upgraded Xcode this morning.
https://github.com/facebook/folly/commit/8477e25603f131c0400b6964609c76b438826788 should have fixed this