Typedef redefinition with different types ('uint8_t' (aka 'unsigned char') vs 'enum clockid_t') when building latest react-native rc with macOS target
See original GitHub issue🐛 Bug Report
Looks like there is a blocking build issue in flipper that is preventing the new macOS target to work when building with the latest react-native release candidate (0.62.0.rc-3) that embeds flipper.
Exact error:
[...]/SandboxProject_62RC3/ios/Pods/Headers/Private/Flipper-Folly/folly/portability/Time.h:51:17: Typedef redefinition with different types ('uint8_t' (aka 'unsigned char') vs 'enum clockid_t')
To Reproduce
- Create a new
react-native
app using the latest release candidate
npx react-native init SandboxProject_62RC3 --version 0.62.0-rc.3
- Open XCode
xed ios/
- Enable macOS target (in Targets > General)
Expected Behavior
Working build
Issue Analytics
- State:
- Created 4 years ago
- Reactions:46
- Comments:105 (14 by maintainers)
Top Results From Across the Web
React Native Build Error on IOS - typedef redefinition with ...
React Native Build Error on IOS - typedef redefinition with different types ('uint8_t' (aka 'unsigned char') vs 'enum clockid_t') · Ask Question.
Read more >RN Typedef redefinition with different types ('uint8_t' (aka ...
React Native version is 0.62.2, When I build in Xcode, ... with different types ('uint8_t' (aka 'unsigned char') vs 'enum clockid_t').
Read more >[Solved]-React Native Build Error on IOS - typedef redefinition ...
Coding example for the question React Native Build Error on IOS - typedef redefinition with different types ('uint8_t' (aka 'unsigned char') vs 'enum...
Read more >React Native Build Error On Ios Typedef Redefinition With - ADocLib
Typedef redefinition with different types 'uint8t' aka 'unsigned char' vs 'enum clockidt' when building latest reactnative rc with macOS target #834.
Read more >Developers - Typedef redefinition with different types ('uint8_t ...
Typedef redefinition with different types ('uint8_t' (aka 'unsigned char') vs 'enum clockid_t') when building latest react-native rc with ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ShivamJoker try using like this in podfile
and then run
pod install --repo-update
https://github.com/facebook/flipper/issues/2215#issuecomment-829102757
Same 😦
EDIT: Found a quick&dirty workaround Looking a few lines above the
clockit_t typedef
in Flipper-FolyTime.h
I changed
__IPHONE_10_0
to__IPHONE_12_0
(as my target iOS version is 11) and got it working. I guess the same can be done forMAC_OS_X_VERSION_10_12
toMAC_OS_X_VERSION_10_15
if you are targeting macOS.