Skip to content

RCT-Folly/folly/portability/Time.h:52:17: typedef redefinition with different types ('uint8_t' (aka 'unsigned char') vs 'enum clockid_t') #32483

@nicolascavallin

Description

@nicolascavallin

Description

Some days ago with my team we've decided to upgrade to RN 0.66.1

After that, I never again can run the project in device or simulator.

I always got the same error:

~/AwesomeProject/ios/Pods/Headers/Private/RCT-Folly/folly/portability/Time.h:52:17:` typedef redefinition with different types ('uint8_t' (aka 'unsigned char') vs 'enum `clockid_t')

But the strange situation is the rest of my team can run and build for device and simulator.

I tried EVERYTHING. Even reinstall Xcode, full cache clean, and all the possible solutions that I've found on web.

The last thing I'm thinking of is reinstall macOS and setup my environment from zero.

Version

0.66.1

Output of react-native info

System:
OS: macOS 11.6
CPU: (8) x64 Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz
Memory: 83.00 MB / 16.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 17.0.1 - /var/folders/xg/t7smqnln18bgm1n6f4svxlph0000gn/T/yarn--1635338087075-0.4760779983126484/node
Yarn: 1.22.17 - /var/folders/xg/t7smqnln18bgm1n6f4svxlph0000gn/T/yarn--1635338087075-0.4760779983126484/yarn
npm: 8.1.0 - /usr/local/bin/npm
Watchman: 2021.10.18.00 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.11.2 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.0.1, iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0
Android SDK: Not Found
IDEs:
Android Studio: 4.1 AI-201.8743.12.41.7199119
Xcode: 13.1/13A1030d - /usr/bin/xcodebuild
Languages:
Java: 11.0.11 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.2 => 17.0.2
react-native: 0.66.1 => 0.66.1
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found

Steps to reproduce

  1. I created a new RN project (following https://reactnative.dev).
  2. I run react-native run-ios.
  3. I got always the same error.
~/AwesomeProject/ios/Pods/Headers/Private/RCT-Folly/folly/portability/Time.h:52:17:` typedef redefinition with different types ('uint8_t' (aka 'unsigned char') vs 'enum `clockid_t')

Snack, code example, screenshot, or link to a repository

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: AttentionIssues where the author has responded to feedback.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions