Xcode 12.5 troubleshooting guide (RN 0.61/0.62/0.63/0.64)
Problem
Hey 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 1. add this line to your podfile (or modify it if you already had it): [code block] 2. change your package.json react-native dependency to [code block] 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 a `pod 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): [code block] Then properly clean your caches (react-native-clean-project is you
Error Output
error about a Flipper package, just remove the relevant lines from the podfile.lock and run the pod install again)
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Solution: Xcode 12.5 troubleshooting guide (RN 0.61/0.62/0.63/0.64)
My experience with following the instructions for a 0.62.2 project did not match what I actually had to do 1) My Podfile did not have a "use_flipper!" call but instead a "add_flipper_pods!" call. 2) The add_flipper_pods def is embedded in the Podfile. For it to work I had to 1) Add require_relative '../node_modules/react-native/scripts/autolink-ios' 2) Remove the whole "def add_flipper_pods!(
Trust Score
6 verifications
- 1
My experience with following the instructions for a 0.62.2 project did not match
My experience with following the instructions for a 0.62.2 project did not match what I actually had to do
- 2
) My Podfile did not have a "use_flipper!" call but instead a "add_flipper_pods!
2) The add_flipper_pods def is embedded in the Podfile.
- 3
) Add require_relative '../node_modules/react-native/scripts/autolink-ios'
1) Add require_relative '../node_modules/react-native/scripts/autolink-ios'
- 4
) Remove the whole "def add_flipper_pods!(versions = {})" block and "def flipper
2) Remove the whole "def add_flipper_pods!(versions = {})" block and "def flipper_post_install(installer)" block
Validation
Resolved in facebook/react-native GitHub issue #31480. Community reactions: 14 upvotes.
Verification Summary
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep