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

[core][ios] Fix jsc import when using use_frameworks #21479

Merged
merged 2 commits into from Mar 2, 2023

Conversation

gabrieldonadel
Copy link
Member

@gabrieldonadel gabrieldonadel commented Mar 2, 2023

Why

iOS projects using use_frameworks! along with JSC are broken on SDK 48

Closes #21461

How

This PR adds an additional import check for <React_jsc/JSCRuntime.h> inside EXJavaScriptRuntime.mm as when in framework mode dashes are replaced with underscores.

Test Plan

Update bare-expo Podfile.properties.json to

{
  "expo.jsEngine": "jsc",
  "ios.useFrameworks": "static"
}

and build the app

Checklist

@expo-bot
Copy link
Collaborator

expo-bot commented Mar 2, 2023

Hi there! 👋 I'm a bot whose goal is to ensure your contributions meet our guidelines.

I've found some issues in your pull request that should be addressed (click on them for more details) 👇

⚠️ Suggestion: Missing links in changelog entries


I've added some suggestions below, you can just apply and commit them 😉


Generated by ExpoBot 🤖 against 4ba4a9a

@expo-bot expo-bot added the bot: suggestions ExpoBot has some suggestions label Mar 2, 2023
Co-authored-by: Expo Bot <34669131+expo-bot@users.noreply.github.com>
@gabrieldonadel gabrieldonadel merged commit 32c7a27 into main Mar 2, 2023
@gabrieldonadel gabrieldonadel deleted the @gabrieldonadel/fix-jsc-use-frameworks branch March 2, 2023 12:07
Kudo pushed a commit that referenced this pull request Mar 3, 2023
# Why

iOS projects using `use_frameworks!` along with JSC are broken on SDK 48

Closes #21461

# How

This PR adds an additional import check for `<React_jsc/JSCRuntime.h>`
inside `EXJavaScriptRuntime.mm` as when in framework mode dashes are
replaced with underscores.

# Test Plan

Update bare-expo `Podfile.properties.json` to

```
{
  "expo.jsEngine": "jsc",
  "ios.useFrameworks": "static"
}
```

and build the app

# Checklist

<!--
Please check the appropriate items below if they apply to your diff.
This is required for changes to Expo modules.
-->

- [ ] Documentation is up to date to reflect these changes (eg:
https://docs.expo.dev and README.md).
- [ ] Conforms with the [Documentation Writing Style
Guide](https://github.com/expo/expo/blob/main/guides/Expo%20Documentation%20Writing%20Style%20Guide.md)
- [ ] This diff will work correctly for `expo prebuild` & EAS Build (eg:
updated a module plugin).

---------

Co-authored-by: Expo Bot <34669131+expo-bot@users.noreply.github.com>
(cherry picked from commit 32c7a27)
@Kudo Kudo added the published Changes from the PR have been published to npm label Mar 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: suggestions ExpoBot has some suggestions published Changes from the PR have been published to npm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[SDK 48] iOS build don't work with JS engine jsc and useFrameworks static
4 participants