Skip to content
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

Fix build with USE_FRAMEWORKS=static #589

Merged
merged 2 commits into from
Dec 17, 2024

Conversation

tomekzaw
Copy link
Collaborator

@tomekzaw tomekzaw commented Dec 17, 2024

Details

Fixes #588.
Fixes Expensify/App#54256.

This PR fixes failing iOS build with USE_FRAMEWORKS=static caused by two problems.

Screenshot 2024-12-17 at 19 02 53
  1. 'worklets/WorkletRuntime/WorkletRuntime.h' file not found – this is caused by incorrect header structure in react-native-reanimated when USE_FRAMEWORKS=static is enabled. This is related to Fix static linking on iOS software-mansion/react-native-reanimated#6614. The workaround here is to find path to node_modules/react-native-reanimated, append it with apple/ or Common/cpp/ and add them to header search paths. This needs to be fixed in react-native-reanimated; once fixed there we can remove the workaround here.

  2. react/renderer/consistency/ShadowTreeRevisionConsistencyManager.h file not found– this is resolved by declaring a dependency onReact-rendererconsistencypodspec whenUSE_FRAMEWORKS=staticis enabled. We already do the same thing forReact-FabricComponents`.

Related Issues

GH_LINK

Manual Tests

Linked PRs

@tomekzaw tomekzaw merged commit e1ccea1 into main Dec 17, 2024
5 checks passed
@tomekzaw tomekzaw deleted the @tomekzaw/fix-ios-use-frameworks-static branch December 17, 2024 20:52
@tomekzaw
Copy link
Collaborator Author

Thanks @luacmartins for approving this!

@os-botify
Copy link
Contributor

os-botify bot commented Dec 17, 2024

🚀 Published to npm in 0.1.209 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants