Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: typedef redefinition with different types ('uint8_t' (aka 'unsigned char') vs 'enum clockid_t') #942

Open
WangLongONE opened this issue Mar 18, 2025 · 0 comments

Comments

@WangLongONE
Copy link

请按以下格式提供问题的相关信息。

问题的具体描述

iOS中执行podinstall 后报
Pods/Headers/Private/RCT-Folly/folly/portability/Time.h:52:17: error: typedef redefinition with different types ('uint8_t' (aka 'unsigned char') vs 'enum clockid_t')

请描述完整的环境/版本信息

  • 请在命令行的项目目录中运行npx react-native info命令,并将其输出结果粘贴到这里。
  • 如果问题涉及到第三方包/库/模块,请也将 package.json 的内容粘贴到这里。
    版本
    System:
    OS: macOS 15.2
    CPU: (8) arm64 Apple M1
    Memory: 111.42 MB / 16.00 GB
    Shell:
    version: "5.9"
    path: /bin/zsh
    Binaries:
    Node:
    version: 18.20.7
    path: ~/.nvm/versions/node/v18.20.7/bin/node
    Yarn:
    version: 1.22.22
    path: ~/.nvm/versions/node/v18.20.7/bin/yarn
    npm:
    version: 10.8.2
    path: ~/.nvm/versions/node/v18.20.7/bin/npm
    Watchman:
    version: 2025.02.17.00
    path: /opt/homebrew/bin/watchman
    Managers:
    CocoaPods:
    version: 1.16.2
    path: /Users/huafang/.rvm/rubies/ruby-3.1.5/bin/pod
    SDKs:
    iOS SDK:
    Platforms:
    - DriverKit 24.2
    - iOS 18.2
    - macOS 15.2
    - tvOS 18.2
    - visionOS 2.2
    - watchOS 11.2
    Android SDK: Not Found
    IDEs:
    Android Studio: Not Found
    Xcode:
    version: 16.2/16C5032a
    path: /usr/bin/xcodebuild
    Languages:
    Java:
    version: javac 23
    path: /usr/bin/javac
    Ruby:
    version: 3.1.5
    path: /Users/huafang/.rvm/rubies/ruby-3.1.5/bin/ruby
    npmPackages:
    "@react-native-community/cli": Not Found
    react:
    installed: 18.2.0
    wanted: ^18.2.0
    react-native:
    installed: 0.72.17
    wanted: ^0.72.17
    react-native-macos: Not Found
    npmGlobalPackages:
    "react-native": Not Found
    Android:
    hermesEnabled: Not found
    newArchEnabled: Not found
    iOS:
    hermesEnabled: false
    newArchEnabled: Not found

预期结果

podfile能pod install成功

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant