Skip to content

[ios] Compilation error when using useFrameworks = static and RN 0.81 #3140

@douglowder

Description

@douglowder

Description

If I set useFrameworks=static in an Expo SDK 54 preview project (using RN 0.81), iOS will not build, with the following error:

› Compiling teststatic Pods/ReactCodegen » Props.cpp
› Compiling teststatic Pods/ReactCodegen » Props.cpp
› Compiling teststatic Pods/ReactCodegen » Props.cpp

❌  (ios/build/generated/ios/react/renderer/components/rnscreens/Props.cpp:12:10)

  10 | 
  11 | #include <react/renderer/components/rnscreens/Props.h>
> 12 | #include <react/renderer/components/image/conversions.h>
     |          ^ 'react/renderer/components/image/conversions.h' file not found
  13 | #include <react/renderer/core/PropsParserContext.h>
  14 | #include <react/renderer/core/propsConversions.h>
  15 | 

› Compiling teststatic Pods/ReactCodegen » EventEmitters.cpp

Steps to reproduce

Repro at https://github.com/douglowder/TestStatic

  1. Create a new project with yarn create expo-app TestStatic --template default@next
  2. Change into the project directory and do npx expo install expo-build-properties@next
  3. Modify the expo-build-properties plugin to enable static frameworks (see above repo)
  4. npx expo prebuild -p ios
  5. yarn ios

Snack or a link to a repository

https://github.com/douglowder/TestStatic

Screens version

4.14.0

React Native version

0.81.0

Platforms

iOS

JavaScript runtime

Hermes

Workflow

Expo managed workflow

Architecture

Fabric (New Architecture)

Build type

Debug mode

Device

iOS simulator

Device model

No response

Acknowledgements

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    platform:iosIssue related to iOS part of the libraryrepro-providedA reproduction with a snack or repo is provided

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions