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

FBReactNativeSpec build commands failed with RN 0.71.4 / Xcode 15.3 / M2 #43474

Closed
aaronpliu opened this issue Mar 14, 2024 · 11 comments
Closed
Labels
Needs: Author Feedback Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. Newer Patch Available Stale There has been a lack of activity on this issue and it may be closed soon.

Comments

@aaronpliu
Copy link

Description

After fix build issue with #43335, Xcode is ok to archive. Running with Jenkins CI, it ran into FBReactNativeSpec error.

The following build commands failed:
PhaseScriptExecution [CP-User]\ Generate\ Specs /Users/ywiuser/Library/Developer/Xcode/DerivedData/hwcApp-dvmqpzncteelaievntyghfvifnud/Build/Intermediates.noindex/ArchiveIntermediates/hwcApp/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/FBReactNativeSpec.build/Script-46EB2E000z8E70.sh (in target 'FBReactNativeSpec' from project 'Pods')
(1 failure)

ENV:
Xcode: 15.3
Arch: M2 Chip
OS: 14.3
RN: 0.71.4
Node: 18.9 (/usr/local/bin/node)

Steps to reproduce

  1. Xcode archive command with option -sdk iphoneos

React Native Version

0.71.4

Affected Platforms

Build - MacOS

Output of npx react-native info

System:
    OS: macOS 14.3.1
    CPU: (24) arm64 Apple M2
    Memory: 39.91 GB / 64.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.19.0 - /usr/local/bin/node
    Yarn: 1.22.17 - /usr/local/bin/yarn
    npm: 10.2.3 - /usr/local/bin/npm
    Watchman: Not Found
  Managers:
    CocoaPods: 1.12.1 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 23.4, iOS 17.4, macOS 14.4, tvOS 17.4, visionOS 1.1, watchOS 10.4
    Android SDK: Not Found
  IDEs:
    Android Studio: 2023.1 AI-231.9392.1.2311.11330709
    Xcode: 15.3/15E5202a - /usr/bin/xcodebuild
  Languages:
    Java: 11.0.16 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 18.2.0 => 18.2.0 
    react-native: 0.71.4 => 0.71.4 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Stacktrace or Logs

The following build commands failed:
PhaseScriptExecution [CP-User]\ Generate\ Specs /Users/ywiuser/Library/Developer/Xcode/DerivedData/hwcApp-dvmqpzncteelaievntyghfvifnud/Build/Intermediates.noindex/ArchiveIntermediates/hwcApp/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/FBReactNativeSpec.build/Script-46EB2E000z8E70.sh (in target 'FBReactNativeSpec' from project 'Pods')
(1 failure)

Reproducer

https://github.com

Screenshots and Videos

No response

Copy link

⚠️ Newer Version of React Native is Available!
ℹ️ You are on a supported minor version, but it looks like there's a newer patch available - 0.71.17. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases.

@github-actions github-actions bot added Needs: Author Feedback Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. labels Mar 14, 2024
Copy link

⚠️ Missing Reproducible Example
ℹ️ We could not detect a reproducible example in your issue report. Please provide either:
  • If your bug is UI related: a Snack
  • If your bug is build/update related: use our Reproducer Template. A reproducer needs to be in a GitHub repository under your username.

@cortinico
Copy link
Contributor

Please provide a valid repro

@aaronpliu
Copy link
Author

aaronpliu commented Mar 15, 2024

it caused by node. Installed node 18 via installer (/usr/local/bin/node), also configured .xcode.env under /ios with export NODE_BINARY=$(command -v node). it's ok to change $(command -v node) to /usr/local/bin/node. Also checked another build machine, same error, but it installed nvm before, using old node version (v16.7) instead of node 18.
similar issue like react-native-community/upgrade-support#214

@github-actions github-actions bot added Needs: Attention Issues where the author has responded to feedback. and removed Needs: Author Feedback labels Mar 15, 2024
@cortinico cortinico removed Needs: Triage 🔍 Needs: Attention Issues where the author has responded to feedback. labels Mar 15, 2024
@cortinico
Copy link
Contributor

it caused by node. Installed node 18 via installer (/usr/local/bin/node), also configured .xcode.env under /ios with export NODE_BINARY=$(command -v node). it's ok to change $(command -v node) to /usr/local/bin/node. Also checked another build machine, same error, but it installed nvm before, using old node version (v16.7) instead of node 18. similar issue like react-native-community/upgrade-support#214

So is your issue solved?

@Linuhusainnk
Copy link

Try rebuild by upgrading ReactCodegen deployment target to IOS 12

Copy link

This issue is waiting for author's feedback since 24 days. Please provide the requested feedback or this will be closed in 7 days.

@github-actions github-actions bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Apr 12, 2024
Copy link

This issue was closed because the author hasn't provided the requested feedback after 7 days.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 19, 2024
Copy link

This issue was closed because it has been stalled for 7 days with no activity.

@BogdanRad
Copy link

BogdanRad commented Apr 28, 2024

hello @aaronpliu, did you find a solution? I have same error..
Xcode: 15.3
"react-native": "0.71.7"
node V: v18.11.0
image

@BogdanRad
Copy link

SOLVED: I removed the .xcode.env.local from ios folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs: Author Feedback Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. Newer Patch Available Stale There has been a lack of activity on this issue and it may be closed soon.
Projects
None yet
Development

No branches or pull requests

4 participants