-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
RCT-Folly/folly/portability/Time.h:52:17: typedef redefinition with different types ('uint8_t' (aka 'unsigned char') vs 'enum clockid_t') #32483
Comments
This comment has been minimized.
This comment has been minimized.
I have same issue |
I didn't find a solution yet, I had to downgrade to RN 65 |
I have the same issue on both 0.66.1 and 0.65.1 |
Please, check your Podfile and be sure that the next piece of code is commented (add
then run |
@nicolascavallin I still get the same error
|
Sorry but I didn’t found the solution yet. I just "hacked" using RN 65 in my local environment. |
adding this to the pre-build script fixed the issue:
|
@nataly87s we are facing the same problem here - could you elaborate where exactly you added this pre-build script? I am a react native newbee. Thanks! |
@Perni1984 Have a look at the comments in #31941. I had the following issue before making some changes to the workaround supplied in React Native 0.66. See this comment, for example. |
@Perni1984 add it to your schema |
Thanks @nataly87s , removing that line 52 in Time.h works for me.
|
@
I did it with RN 66
|
Still facing the same issue with upgrading React Native for months now. It's blocking the update of the other dependencies that depend on React Native being updated as well |
I found the pattern of this error! It's all about the path to the project.
The error occurs when there are spaces in the path to the project! |
React native 0.68.2 this issue is causing major problems |
I had the same issue with React native 0.70 System I followi the setup https://reactnative.dev/docs/environment-setup
Solved -- What was causing the issue was my project parent dir has a "space" in it, |
Ooops, yes. Watchman crash if the folder has an space (at least in my experience). By the way, in M1, RN works for me if I install pods and if I run |
Hi! Try update RN to 66.5 and see migration guid, there are some changes in Podfile and AppDelegate file if needed. And try build your app in ios 14.4 |
I leave my comment for anyone who faced the same issue recently. I hope this may help |
the given link is broken, So anyway here is what worked for me
I was first confused with command |
that worked for me, thanks |
### Description See microsoft/onnxruntime-extensions#476 and actions/runner-images#7671 ### Motivation and Context <!-- - Why is this change required? What problem does it solve? - If it fixes an open issue, please link to the issue here. --> ### Current issue - [ ] For default xcode 15.2, that come with the MacOS-13, We Need to update the boost container header boost/container_hash/hash.hpp version to pass the build - [x] For xcode 14.2 The Build passed but the `Run React Native Detox Android e2e Test` Failed. Possible flaky test, #21969 - [x] For xcode 14.3.1 We encountered following issue in `Build React Native Detox iOS e2e Tests` ``` ld: file not found: /Applications/Xcode_14.3.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphonesimulator.a clang: error: linker command failed with exit code 1 (use -v to see invocation) ``` Applied following code to the eof in both ios/Podfile and fixed the issue ``` post_install do |installer| installer.generated_projects.each do |project| project.targets.each do |target| target.build_configurations.each do |config| config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0' end end end end ``` - [x] facebook/react-native#32483 Applying changes to ios/Pofile ``` pre_install do |installer| # Custom pre-install script or commands puts "Running pre-install script..." # Recommended fix for facebook/react-native#32483 # from facebook/react-native#32483 (comment) system("sed -i '' 's/typedef uint8_t clockid_t;//' \"${SRCROOT}/Pods/RCT-Folly/folly/portability/Time.h\"") end ``` - [ ] Detox environment setting up exceeded time out of 120000ms during iso e2e test ### dependent - [x] #21159 --------- Co-authored-by: Changming Sun <chasun@microsoft.com>
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:
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
react-native run-ios
.Snack, code example, screenshot, or link to a repository
No response
The text was updated successfully, but these errors were encountered: