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

feat(cli): Ensure invalid production iOS builds fail more predictably. #25410

Merged
merged 3 commits into from Nov 16, 2023

Conversation

EvanBacon
Copy link
Contributor

Why

  • fix ENG-10524
  • Guess where the iOS bundle was copied to and delete it.
  • Strip ansi from error messages when the process is running in xcodebuild/compiler.
  • Use xcode log compilation format to support first-class errors in Xcode.
Screenshot 2023-11-15 at 7 50 54 PM Screenshot 2023-11-15 at 7 52 48 PM Screenshot 2023-11-15 at 8 27 26 PM

How

Test Plan

Tested Release builds in Xcode with CLI_PATH set to the local CLI:

  export CLI_PATH=/Users/evanbacon/Documents/GitHub/expo/packages/@expo/cli/build/bin/cli

Added some unit tests for the more fragile logic.

Checklist

Copy link

linear bot commented Nov 16, 2023

ENG-10524 Delete previous release bundle when running a new release build for iOS/Android

Related: ENG-10223

Dan Abramov commented: "every release build should start by deleting the previous bundle" - I'm inclined to agree! We can potentially backport this to SDK 49 as well.

I suspect we could handle this in Expo CLI as part of the export:embed command

@expo-bot expo-bot added the bot: suggestions ExpoBot has some suggestions label Nov 16, 2023
Co-authored-by: Expo Bot <34669131+expo-bot@users.noreply.github.com>
@expo-bot expo-bot added bot: passed checks ExpoBot has nothing to complain about and removed bot: suggestions ExpoBot has some suggestions labels Nov 16, 2023
@EvanBacon EvanBacon merged commit 5cf2fe5 into main Nov 16, 2023
9 checks passed
@EvanBacon EvanBacon deleted the @evanbacon/cli/improve-export-embed branch November 16, 2023 18:40
onizam95 pushed a commit to onizam95/expo-av-drm that referenced this pull request Jan 15, 2024
expo#25410)

# Why

- fix ENG-10524
- Guess where the iOS bundle was copied to and delete it.
- Strip ansi from error messages when the process is running in
xcodebuild/compiler.
- Use xcode log compilation format to support first-class errors in
Xcode.

<img width="1364" alt="Screenshot 2023-11-15 at 7 50 54 PM"
src="https://github.com/expo/expo/assets/9664363/af3581cd-9cbc-4bd8-9973-117faa8b3f53">
<img width="954" alt="Screenshot 2023-11-15 at 7 52 48 PM"
src="https://github.com/expo/expo/assets/9664363/dfd4244d-a1d7-45fe-8ffd-8891f64b39c6">
<img width="499" alt="Screenshot 2023-11-15 at 8 27 26 PM"
src="https://github.com/expo/expo/assets/9664363/5cf4f41a-4cc8-4946-986f-3d49006bc96b">


<!--
Please describe the motivation for this PR, and link to relevant GitHub
issues, forums posts, or feature requests.
-->

# How

<!--
How did you build this feature or fix this bug and why?
-->

# Test Plan

Tested Release builds in Xcode with CLI_PATH set to the local CLI:

```
  export CLI_PATH=/Users/evanbacon/Documents/GitHub/expo/packages/@expo/cli/build/bin/cli
```

Added some unit tests for the more fragile logic.

<!--
Please describe how you tested this change and how a reviewer could
reproduce your test, especially if this PR does not include automated
tests! If possible, please also provide terminal output and/or
screenshots demonstrating your test/reproduction.
-->

# 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).

---------

Co-authored-by: Expo Bot <34669131+expo-bot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: fingerprint changed bot: passed checks ExpoBot has nothing to complain about
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants