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

Resolve pod conflict #1775

Merged
merged 2 commits into from
Mar 2, 2021
Merged

Resolve pod conflict #1775

merged 2 commits into from
Mar 2, 2021

Conversation

piaskowyk
Copy link
Member

Description

The problem very well described here (Freeform description section)

Possible solution

  • turn off USE_HEADERMAPS
  • move header file to preserved_paths

@piaskowyk piaskowyk marked this pull request as ready for review March 2, 2021 08:31
@piaskowyk piaskowyk requested a review from Szymon20000 March 2, 2021 08:31
@piaskowyk piaskowyk merged commit 424bb2e into master Mar 2, 2021
@piaskowyk piaskowyk deleted the @piaskowyk/name-collision branch March 2, 2021 08:35
github-merge-queue bot pushed a commit that referenced this pull request Aug 31, 2023
## Summary

The `Check Expo dev-client nightly build` CI
(https://github.com/software-mansion/react-native-reanimated/actions/runs/6016772546)
fails with error:
```bash
❌  /Users/runner/work/react-native-reanimated/react-native-reanimated/app/
node_modules/react-native-reanimated/Common/cpp/ReanimatedRuntime/
WorkletRuntimeDecorator.cpp:59:3: use of undeclared identifier 'jsi_utils'

  jsi_utils::installJsiFunction(
```

This PR fixes the issue of header name conflict with expo-dev-client.
The Expo package includes its own JsiUtils.h file, which leads to a
collision in header mapping within Xcode. To resolve this problem, we
have three possible options:
- Use an absolute import path (doesn't work on Android).
- Rename JsiUtils.h (as done in this PR).
- Utilize namespace imports like #include <Reanimated/...>.

In the past we encountered similar issue with Xcode flat header mapping
- #1775

Fixes
#5002

## Test plan

Check CI status:
https://github.com/software-mansion/react-native-reanimated/actions/runs/6034169391?pr=5010
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants