Skip to content

Conversation

tboba
Copy link
Contributor

@tboba tboba commented Aug 26, 2024

Description

In the newest version of screens, there's a bug where compiler can't find RectUtil.h file from utils/RectFile.h during the compile phase of RNSScreenComponentDescriptor file.
This PR fixes this by changing the path of RectUtil.h file to <react/renderer/components/rnscreens/util/RectFile.h> file.

Fixes #2306.

Changes

  • Changed import of RectUtil.h file in RNSScreenComponentDescriptor.h file

Test code and steps to reproduce

  • Download reproducer from https://github.com/jankosecki/react-native-upgrade-tester/tree/rn-0.75
  • Delete patches/react-native-screens+3.34.0.patch
  • Clean up node_modules in case patch already applied
  • Run yarn setup (it invokes "pod-install": "(cd ./ios ; RCT_NEW_ARCH_ENABLED=1 USE_FRAMEWORKS=static bundle exec pod install --repo-update)" which enables new architecture)
  • Open XCode to set up development team (provided repro contains None team in Signing & Capabilities)
  • Run yarn start
  • Run yarn ios or trigger build from XCode (yarn ios causes a massive error output with different "error" lines but XCode offers a clear reason.

Checklist

  • Ensured that CI passes

@tboba tboba changed the title fix(iOS): Change path of RectUtil.h file to react/renderer/components fix(iOS): Change import of RectUtil.h file to react/renderer/components Aug 26, 2024
Copy link
Member

@kkafar kkafar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏻

@tboba tboba merged commit 80dcad4 into main Aug 27, 2024
7 checks passed
@tboba tboba deleted the @tboba/fix-rectutil branch August 27, 2024 11:38
ja1ns pushed a commit to WiseOwlTech/react-native-screens that referenced this pull request Oct 9, 2024
…ts (software-mansion#2319)

## Description

In the newest version of screens, there's a bug where compiler can't
find RectUtil.h file from `utils/RectFile.h` during the compile phase of
RNSScreenComponentDescriptor file.
This PR fixes this by changing the path of RectUtil.h file to
<react/renderer/components/rnscreens/util/RectFile.h> file.

Fixes software-mansion#2306.

## Changes

- Changed import of RectUtil.h file in RNSScreenComponentDescriptor.h
file

## Test code and steps to reproduce

- Download reproducer from
https://github.com/jankosecki/react-native-upgrade-tester/tree/rn-0.75
- Delete patches/react-native-screens+3.34.0.patch
- Clean up node_modules in case patch already applied
- Run yarn setup (it invokes "pod-install": "(cd ./ios ;
RCT_NEW_ARCH_ENABLED=1 USE_FRAMEWORKS=static bundle exec pod install
--repo-update)" which enables new architecture)
- Open XCode to set up development team (provided repro contains None
team in Signing & Capabilities)
- Run yarn start
- Run yarn ios or trigger build from XCode (yarn ios causes a massive
error output with different "error" lines but XCode offers a clear
reason.

## Checklist

- [ ] Ensured that CI passes
alduzy pushed a commit that referenced this pull request Oct 25, 2024
…ts (#2319)

## Description

In the newest version of screens, there's a bug where compiler can't
find RectUtil.h file from `utils/RectFile.h` during the compile phase of
RNSScreenComponentDescriptor file.
This PR fixes this by changing the path of RectUtil.h file to
<react/renderer/components/rnscreens/util/RectFile.h> file.

Fixes #2306.

## Changes

- Changed import of RectUtil.h file in RNSScreenComponentDescriptor.h
file

## Test code and steps to reproduce

- Download reproducer from
https://github.com/jankosecki/react-native-upgrade-tester/tree/rn-0.75
- Delete patches/react-native-screens+3.34.0.patch
- Clean up node_modules in case patch already applied
- Run yarn setup (it invokes "pod-install": "(cd ./ios ;
RCT_NEW_ARCH_ENABLED=1 USE_FRAMEWORKS=static bundle exec pod install
--repo-update)" which enables new architecture)
- Open XCode to set up development team (provided repro contains None
team in Signing & Capabilities)
- Run yarn start
- Run yarn ios or trigger build from XCode (yarn ios causes a massive
error output with different "error" lines but XCode offers a clear
reason.

## Checklist

- [ ] Ensured that CI passes
kkafar pushed a commit that referenced this pull request Oct 25, 2024
…ts (#2319)

## Description

In the newest version of screens, there's a bug where compiler can't
find RectUtil.h file from `utils/RectFile.h` during the compile phase of
RNSScreenComponentDescriptor file.
This PR fixes this by changing the path of RectUtil.h file to
<react/renderer/components/rnscreens/util/RectFile.h> file.

Fixes #2306.

## Changes

- Changed import of RectUtil.h file in RNSScreenComponentDescriptor.h
file

## Test code and steps to reproduce

- Download reproducer from
https://github.com/jankosecki/react-native-upgrade-tester/tree/rn-0.75
- Delete patches/react-native-screens+3.34.0.patch
- Clean up node_modules in case patch already applied
- Run yarn setup (it invokes "pod-install": "(cd ./ios ;
RCT_NEW_ARCH_ENABLED=1 USE_FRAMEWORKS=static bundle exec pod install
--repo-update)" which enables new architecture)
- Open XCode to set up development team (provided repro contains None
team in Signing & Capabilities)
- Run yarn start
- Run yarn ios or trigger build from XCode (yarn ios causes a massive
error output with different "error" lines but XCode offers a clear
reason.

## Checklist

- [ ] Ensured that CI passes

(cherry picked from commit 80dcad4)
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.

[RN 0.75 new arch] 'utils/RectUtil.h' file not found
3 participants