Xcode 12.5 troubleshooting guide (RN 0.61/0.62/0.63/0.64)
See original GitHub issueHey folks.
This issue wants to be a follow up to https://github.com/facebook/react-native/issues/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 https://github.com/facebook/react-native/issues/28405#issuecomment-840914650 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.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:319
- Comments:147 (14 by maintainers)
Top GitHub Comments
Here’s my full set of hacks.
My experience with following the instructions for a 0.62.2 project did not match what I actually had to do
For it to work I had to
Add require_relative ‘…/node_modules/react-native/scripts/autolink-ios’
Remove the whole “def add_flipper_pods!(versions = {})” block and “def flipper_post_install(installer)” block
Change add_flipper_pods! to add_flipper_pods!(‘Flipper’ => ‘0.75.1’, ‘Flipper-Folly’ => ‘2.5.3’, ‘Flipper-RSocket’ => ‘1.3.1’)
With these change project now builds again.