iosxcodeexpoeasfolly

How do I debug? - expo ios preview build is failing at Xcode compilation step because of folly Coroutine.h file not found error


I am running this command eas build --platform ios --profile preview

And this is the build error

- 'folly/experimental/coro/Coroutine.h' file not found
Refer to "Xcode Logs" below for additional, more detailed logs.
/Users/expo/workingdir/build/ios/Pods/Headers/Public/RCT-Folly/folly/Optional.h:667:10:
fatal error: 'folly/experimental/coro/Coroutine.h' file not found
  667 | #include <folly/experimental/coro/Coroutine.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning and 1 error generated.

How do I begin to debug this? This thread talks about updating Podfiles and coroutine configs, where do I access these files to make any adjustments?

https://github.com/facebook/folly/issues/2297


Solution

  • Running expo prebuild generates the ios/ and android/ files, and from there I was able to edit the Podfile and rerun the build command