expo: [SDK 49 beta] useFrameworks: static and expo-dev-client cause crash in build

Minimal reproducible example

https://github.com/RRaideRR/expo-49-dev-client

Summary

When enabling "useFrameworks": "static" and using expo-dev-client, the iOS build crashes with a huge error log (sorry I cannot copy it - 25mb long). Took the whole morning to got this down to this reproducible example.

When disabling "useFrameworks": "static" everything works.

Take a look at the minimal reproducible example and run:

yarn install
npx expo prebuild --clean
npx expo run:ios --no-build-cache

Environment

expo-env-info 1.0.5 environment info: System: OS: macOS 13.4.1 Shell: 5.9 - /bin/zsh Binaries: Node: 18.15.0 - ~/.nvm/versions/node/v18.15.0/bin/node Yarn: 1.22.19 - ~/.yarn/bin/yarn npm: 9.5.0 - ~/.nvm/versions/node/v18.15.0/bin/npm Watchman: 2023.03.06.00 - /opt/homebrew/bin/watchman Managers: CocoaPods: 1.12.0 - /opt/homebrew/bin/pod SDKs: iOS SDK: Platforms: DriverKit 22.4, iOS 16.4, macOS 13.3, tvOS 16.4, watchOS 9.4 IDEs: Android Studio: 2022.2 AI-222.4459.24.2221.10121639 Xcode: 14.3.1/14E300c - /usr/bin/xcodebuild npmPackages: expo: ~49.0.0-beta.0 => 49.0.0-beta.0 react: 18.2.0 => 18.2.0 react-native: 0.72.0 => 0.72.0 npmGlobalPackages: eas-cli: 3.14.0 expo-cli: 6.3.9 Expo Workflow: bare

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 1
  • Comments: 16 (7 by maintainers)

Commits related to this issue

Most upvoted comments

I’m seeing a similar issue, not quite the same error but an issue with header paths when using expo 49 on EAS build with use_frameworks! static

The React-utils pod fails to compile because it can’t find the react/debug headers. IIRC @Kudo was the one who sorted out all the use_frameworks header issues before, any thoughts?

[RUN_FASTLANE] › Compiling react-native Pods/React-utils » React_utils_vers.c
[RUN_FASTLANE] › Compiling react-native Pods/React-utils » React-utils-dummy.m
[RUN_FASTLANE] › Compiling .pnpm Pods/React-utils » ManagedObjectWrapper.mm
[RUN_FASTLANE] › Compiling .pnpm Pods/React-utils » RunLoopObserver.cpp
[RUN_FASTLANE]
❌  (node_modules/react-native/ReactCommon/react/utils/RunLoopObserver.h:10:10)

   8 | #pragma once
   9 |
> 10 | #include <react/debug/react_native_assert.h>
     |          ^ 'react/debug/react_native_assert.h' file not found
  11 | #include <atomic>
  12 | #include <functional>
  13 | #include <memory>

[RUN_FASTLANE] › Compiling react-native Pods/React-utils » React_utils_vers.c