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

Restore CLI_PATH variable in react-native-xcode script #45560

Conversation

gabrieldonadel
Copy link
Collaborator

Summary:

When changing the react-native-xcode.sh logic to use the helloworld cli on #44721, the CLI_PATH env var was removed along with BUNDLE_COMMAND. Both of these values were used by Expo to override the default CLI and use our custom bundling command.

https://github.com/expo/expo/blob/10e302ee13add0e24a08c7ee792c2da50ace95a6/templates/expo-template-bare-minimum/ios/HelloWorld.xcodeproj/project.pbxproj#L215C4-L215C15

This restores the CLI_PATH variable and set the default value as "$REACT_NATIVE_DIR/scripts/bundle.js", along with the BUNDLE_COMMAND variable. With this Expo and other frameworks can keep the ability to easily replace the internal CLI

Changelog:

[INTERNAL] [CHANGED] - Restore CLI_PATH variable in react-native-xcode script

Test Plan:

Project compiles correctly on iOS

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Expo Partner: Expo Partner Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. labels Jul 20, 2024
@facebook-github-bot
Copy link
Contributor

@blakef has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Jul 22, 2024
@facebook-github-bot
Copy link
Contributor

@blakef merged this pull request in aa4f802.

@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @gabrieldonadel in aa4f802

When will my fix make it into a release? | How to file a pick request?

@gabrieldonadel gabrieldonadel deleted the @gabrieldonadel/restore-cli-override branch July 22, 2024 11:48
cipolleschi pushed a commit that referenced this pull request Jul 22, 2024
Summary:
When changing the `react-native-xcode.sh` logic to use the helloworld cli on #44721, the `CLI_PATH` env var was removed along with `BUNDLE_COMMAND`. Both of these values were used by Expo to override the default CLI and use our custom bundling command.

https://github.com/expo/expo/blob/10e302ee13add0e24a08c7ee792c2da50ace95a6/templates/expo-template-bare-minimum/ios/HelloWorld.xcodeproj/project.pbxproj#L215C4-L215C15

This restores the `CLI_PATH` variable and set the default value as `"$REACT_NATIVE_DIR/scripts/bundle.js"`, along with the `BUNDLE_COMMAND` variable. With this Expo and other frameworks can keep the ability to easily replace the internal CLI

## Changelog:

[INTERNAL] [CHANGED] - Restore CLI_PATH variable in react-native-xcode script

Pull Request resolved: #45560

Test Plan: Project compiles correctly on iOS

Reviewed By: robhogan

Differential Revision: D60035338

Pulled By: blakef

fbshipit-source-id: 26583d11d9f573f7cfa405b68e0cc3304c3601df
gabrieldonadel added a commit to expo/expo that referenced this pull request Jul 24, 2024
# Why

upgrade react-native to 0.75 on main, the idea is that it should be
backward compatible with SDK 51

Closes ENG-12562

# How

- update package versions
  - `react-native 0.74.3 -> 0.75.0-rc.5` 
  - `react 18.2.0 -> 19.0.0-rc-fb9a90fa48-20240614`
  - `react-dom 18.2.0 -> 19.0.0-rc-fb9a90fa48-20240614`  
  - `react-test-renderer 18.2.0 -> 19.0.0-rc-fb9a90fa48-20240614`  
- upgrade project templates based on
[upgrade-helper](https://react-native-community.github.io/upgrade-helper/?from=0.74.2&to=0.75.0-rc.2)
- Set CXX language standard to c++20 on expo-av
- Reverted #30239 because Kotlin
getters were reverted in RC5

- [bare-expo][fabric-tester] Temporarily disabled DevClient (reenabled
here -> #30545)
- [cli ] Add `--config-cmd` option to `export:embed` (for additional
info check facebook/react-native#45560)
- [expo-go]react-native upgrade ->
#30519


#### Libraries that need to be patched for now:
- react-native-reanimated
- react-native-pager-view
- react-native-safe-area-context 
- react-native-screens 
- react-native

# Test Plan

- FabricTester
   -  Crashing on Android
- BareExpo


# 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 `npx expo prebuild` & EAS Build
(eg: updated a module plugin).
facebook-github-bot pushed a commit that referenced this pull request Sep 17, 2024
Summary:
In this PR #45560  the BUNDLE_COMMAND initialization was removed while it is still being used. Without it, building from Xcode throws unknown options error for Physical iOS devices.

I have just brought back the initialization from the PR before that, so the bundle phase is successful.

## Changelog:
[IOS][Fixed] - Add back the BUNDLE_COMMAND

Pull Request resolved: #46495

Test Plan: I have bundled release builds in Xcode. Everything seems to be fine.

Reviewed By: cortinico

Differential Revision: D62846877

Pulled By: cipolleschi

fbshipit-source-id: 3f07e8c0bc5acf98177582f1fee9a55ae77b31a1
blakef pushed a commit that referenced this pull request Sep 23, 2024
Summary:
In this PR #45560  the BUNDLE_COMMAND initialization was removed while it is still being used. Without it, building from Xcode throws unknown options error for Physical iOS devices.

I have just brought back the initialization from the PR before that, so the bundle phase is successful.

## Changelog:
[IOS][Fixed] - Add back the BUNDLE_COMMAND

Pull Request resolved: #46495

Test Plan: I have bundled release builds in Xcode. Everything seems to be fine.

Reviewed By: cortinico

Differential Revision: D62846877

Pulled By: cipolleschi

fbshipit-source-id: 3f07e8c0bc5acf98177582f1fee9a55ae77b31a1
blakef pushed a commit that referenced this pull request Sep 30, 2024
Summary:
In this PR #45560  the BUNDLE_COMMAND initialization was removed while it is still being used. Without it, building from Xcode throws unknown options error for Physical iOS devices.

I have just brought back the initialization from the PR before that, so the bundle phase is successful.

## Changelog:
[IOS][Fixed] - Add back the BUNDLE_COMMAND

Pull Request resolved: #46495

Test Plan: I have bundled release builds in Xcode. Everything seems to be fine.

Reviewed By: cortinico

Differential Revision: D62846877

Pulled By: cipolleschi

fbshipit-source-id: 3f07e8c0bc5acf98177582f1fee9a55ae77b31a1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. p: Expo Partner: Expo Partner Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants