-
Notifications
You must be signed in to change notification settings - Fork 24.8k
Description
Hey folks.
This issue wants to be a follow up to #31179; that issue has become really long so opening a new one to try and reduce the noise and confusion around it.
Here is how to fix the Xcode 12.5 iOS build breaks with errors related to "atomic_wait_until is unavailable" (and similar messages).
(sidenote: make sure you are using cocoapods 1.10.x)
If you are on 0.61
Note well: this has only been tested by a few members of the community, not by me, so I can't ensure it will work.
If you are still using RN 0.61, you can refer to this comment #28405 (comment) from @edgarbonillag.
If you are on 0.62
- add this line to your podfile (or modify it if you already had it):
use_flipper!({'Flipper' => '0.75.1', 'Flipper-Folly' => '2.5.3', 'Flipper-RSocket' => '1.3.1'})
- change your package.json react-native dependency to
"react-native": "0.62.3"
- do all the classic necessary cleans (node_modules, caches, pod folders, etc)(react-native-clean-project is your ally) then do
yarn install
and apod install --repo-update
(if pod install fails on an error about a Flipper package, just remove the relevant lines from the podfile.lock and run the pod install again)
If you are on 0.63
Note well: you need to be on latest 0.63.x release, at the time of writing 0.63.3.
If you are on 0.63, you are in luck! You just need to add this line to your podfile (or modify it if you already had it):
use_flipper!({'Flipper' => '0.75.1', 'Flipper-Folly' => '2.5.3', 'Flipper-RSocket' => '1.3.1'})
Then properly clean your caches (react-native-clean-project is your ally), remove pods folder and do a pod install --repo-update
.
This should be enough for you to get Xcode 12.5 to work.
If you are on 0.64
- (optional) check your podfile.lock and make sure that Flipper is on 0.75 or higher, and Flipper-Folly is 2.5.3 or higher; if not, add this line to your podfile (or modify it if you already had it):
use_flipper!({'Flipper' => '0.75.1', 'Flipper-Folly' => '2.5.3', 'Flipper-RSocket' => '1.3.1'})
- change your package.json react-native dependency to:
"react-native": "0.64.1" // or higher
- do all the classic necessary cleans (node_modules, caches, pod folders, etc)(react-native-clean-project is your ally) then do
yarn install
and apod install --repo-update
(if pod install fails on an error about a Flipper package, just remove the relevant lines from the podfile.lock and run the pod install again)
These scenario have all been tested and ✅ so if you are still experiencing issues, it's likely that it's caused by some local configuration getting in the way. If that's the case, please refer to this comment by @smadan.
If none of the above helped you, and you can reproduce your issue consistently - even on a freshly init'd project, then post a comment below with how to repro so that this can be investigated further.