-
Notifications
You must be signed in to change notification settings - Fork 25.1k
Expected.h:1587:10: 'folly/coro/Coroutine.h' file not found #53575
Copy link
Copy link
Closed
Labels
Needs: Author FeedbackNeeds: ReproThis issue could be improved with a clear list of steps to reproduce the issue.This issue could be improved with a clear list of steps to reproduce the issue.Resolution: Cannot Reproduce
Description
Description
This appears to be caused by Folly referencing folly/coro/Coroutine.h, which no longer exists in the bundled Folly version.
Disabling the New Architecture (:new_arch_enabled => false) allows the project to build successfully, which suggests it’s related to Folly integration in the new architecture.
/Users//Library/Developer/Xcode/DerivedData//Build/Products/Debug-iphonesimulator/RCT-Folly/folly.framework/Headers/folly/Expected.h:1587:10: 'folly/coro/Coroutine.h' file not found
Steps to reproduce
- Run cd ios && pod install.
- Open the project in Xcode 16+ and build for iOS simulator.
- Observe build failure: 'folly/coro/Coroutine.h' file not found
React Native Version
0.81.0
Affected Platforms
Runtime - iOS
Output of npx @react-native-community/cli info
info Fetching system and libraries information...
System:
OS: macOS 14.7.6
CPU: (4) x64 Intel(R) Core(TM) i5-8210Y CPU @ 1.60GHz
Memory: 193.15 MB / 16.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 22.18.0
path: ~/.nvm/versions/node/v22.18.0/bin/node
Yarn:
version: 1.22.22
path: /usr/local/bin/yarn
npm:
version: 10.9.3
path: ~/.nvm/versions/node/v22.18.0/bin/npm
Watchman:
version: 2024.01.22.00
path: /usr/local/bin/watchman
Managers:
CocoaPods:
version: 1.16.2
path: /Users/ramangupta/.rvm/gems/ruby-3.2.2/bin/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 24.1
- iOS 18.1
- macOS 15.1
- tvOS 18.1
- visionOS 2.1
- watchOS 11.1
Android SDK: Not Found
IDEs:
Android Studio: Not Found
Xcode:
version: 16.1/16B40
path: /usr/bin/xcodebuild
Languages:
Java:
version: 18.0.2.1
path: /usr/bin/javac
Ruby:
version: 3.2.2
path: /Users/ramangupta/.rvm/rubies/ruby-3.2.2/bin/ruby
npmPackages:
"@react-native-community/cli":
installed: 20.0.0
wanted: ^20.0.1
react:
installed: 19.1.0
wanted: 19.1.0
react-native:
installed: 0.81.0
wanted: 0.81.0
react-native-macos: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: true
iOS:
hermesEnabled: true
newArchEnabled: true
info React Native v0.81.1 is now available (your project is running on v0.81.0).
info Changelog: https://github.com/facebook/react-native/releases/tag/v0.81.1
info Diff: https://react-native-community.github.io/upgrade-helper/?from=0.81.0&to=0.81.1
info For more info, check out "https://reactnative.dev/docs/upgrading?os=macos".
Stacktrace or Logs
'folly/coro/Coroutine.h' file not found
Showing Recent Errors Only
/Users/ramangupta/Desktop/fozzy/ios/App/AppDelegate.mm:1:9: in file included from /Users/ramangupta/Desktop/fozzy/ios/App/AppDelegate.mm:1:
Showing Recent Errors Only
/Users/ramangupta/Desktop/fozzy/ios/App/AppDelegate.h:1:9: in file included from /Users/ramangupta/Desktop/fozzy/ios/App/AppDelegate.h:1:
Showing Recent Errors Only
/Users/ramangupta/Desktop/fozzy/node_modules/react-native/Libraries/AppDelegate/RCTAppDelegate.h:11:9: in file included from /Users/ramangupta/Library/Developer/Xcode/DerivedData/App-hbaeadqpbosinicdefgchhpmmfdz/Build/Products/Debug-iphonesimulator/React-RCTAppDelegate/React_RCTAppDelegate.framework/Headers/RCTAppDelegate.h:11:
Showing Recent Errors Only
/Users/ramangupta/Desktop/fozzy/node_modules/react-native/Libraries/AppDelegate/RCTDefaultReactNativeFactoryDelegate.h:9:9: in file included from /Users/ramangupta/Library/Developer/Xcode/DerivedData/App-hbaeadqpbosinicdefgchhpmmfdz/Build/Products/Debug-iphonesimulator/React-RCTAppDelegate/React_RCTAppDelegate.framework/Headers/RCTDefaultReactNativeFactoryDelegate.h:9:
Showing Recent Errors Only
/Users/ramangupta/Desktop/fozzy/node_modules/react-native/Libraries/AppDelegate/RCTReactNativeFactory.h:18:9: in file included from /Users/ramangupta/Library/Developer/Xcode/DerivedData/App-hbaeadqpbosinicdefgchhpmmfdz/Build/Products/Debug-iphonesimulator/React-RCTAppDelegate/React_RCTAppDelegate.framework/Headers/RCTReactNativeFactory.h:18:
Showing Recent Errors Only
/Users/ramangupta/Desktop/fozzy/node_modules/react-native/React/Fabric/Mounting/RCTComponentViewFactory.h:10:9: in file included from /Users/ramangupta/Library/Developer/Xcode/DerivedData/App-hbaeadqpbosinicdefgchhpmmfdz/Build/Products/Debug-iphonesimulator/React-RCTFabric/RCTFabric.framework/Headers/React/RCTComponentViewFactory.h:10:
MANDATORY Reproducer
npx react-native@0.81.0 init FollyBugTest cd FollyBugTest/ios pod install cd .. npx react-native run-ios
Screenshots and Videos
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Needs: Author FeedbackNeeds: ReproThis issue could be improved with a clear list of steps to reproduce the issue.This issue could be improved with a clear list of steps to reproduce the issue.Resolution: Cannot Reproduce