question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[0.64.0] archive fails for release due to invalid check for custom ENTRY_FILE

See original GitHub issue

Description

I have a monorepo setup (using nrwl), that specifies a custom ENTRY_FILE that is used within react-native-xcode.sh script.

This was working fine on 0.63.4, but started failing on 0.64.0. After further inspection, I found this new check added

https://github.com/facebook/react-native/blob/master/scripts/react-native-xcode.sh#L80-L83

It’s not running in the correct context, removing it and everything works fine again.

React Native version:

System: OS: macOS 11.2.3 CPU: (12) x64 Intel® Core™ i7-8850H CPU @ 2.60GHz Memory: 2.06 GB / 16.00 GB Shell: 5.8 - /bin/zsh Binaries: Node: 14.10.1 - /usr/local/bin/node Yarn: 1.22.5 - /usr/local/bin/yarn npm: 6.14.8 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman Managers: CocoaPods: 1.10.1 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: iOS 14.4, DriverKit 20.2, macOS 11.1, tvOS 14.3, watchOS 7.2 Android SDK: API Levels: 23, 26, 27, 28, 29, 30 Build Tools: 23.0.1, 28.0.3, 29.0.2, 29.0.3, 30.0.0, 30.0.1, 30.0.3 System Images: android-29 | Google APIs Intel x86 Atom, android-29 | Google Play Intel x86 Atom, android-30 | Google APIs Intel x86 Atom Android NDK: 22.0.6917172-beta1 IDEs: Android Studio: 4.1 AI-201.8743.12.41.6953283 Xcode: 12.4/12D4e - /usr/bin/xcodebuild Languages: Java: 1.8.0_181 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: 17.0.1 => 17.0.1 react-native: 0.64.0 => 0.64.0 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found

Steps To Reproduce

Provide a detailed list of steps that reproduce the issue.

  1. Have a monorepo setup (or custom entry file)
  2. Attempt to create an iOS archive

Expected Results

To archive successfully.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
chasepoiriercommented, Apr 22, 2021

@Johan-dutoit I was facing the same issue the other day in my monorepo. What ended up working for me was to modify my Bundle React Native code and images build phase to look like this:

export NODE_BINARY=node
export EXTRA_PACKAGER_ARGS="--entry-file frontend/mobile-app/index.js"
../../../node_modules/react-native/scripts/react-native-xcode.sh frontend/mobile-app/index.js

This worked without any modifications to the react-native-xcode.sh script

2reactions
nitalianocommented, Sep 21, 2021

This got both debug and release builds working for me in a monorepo

export NODE_BINARY=node
export EXTRA_PACKAGER_ARGS="--entry-file index.js"

if [[ "$CONFIGURATION" = *Release* ]]; then
  export ENTRY_FILE=<path to index.js from monorepo root>
fi

# Go to monorepo root
cd <monorepo root path>

# Run from root
./node_modules/react-native/scripts/react-native-xcode.sh
Read more comments on GitHub >

github_iconTop Results From Across the Web

Xcode archive validation fails whe… | Apple Developer Forums
Validation step fails with an ITMS-900035 code object not signed error. Anyone else seeing this issue? The error returned is as follows -...
Read more >
reanimated 2 failed to create a worklet, maybe you forgot to ...
A frequent cause of the error is that the application entry file path is incorrect. This can also happen when the JS bundle...
Read more >
Unable to resolve module `react-native-reanimated`
I figured out this because I deleted the node_modules folder and installed again all the dependencies by yarn install so, if have a...
Read more >
Releases.md | deno@v1.3.0
feat: Add "--no-check" flag to deno install (#6948); feat: Add "--ignore" flag to ... fix: URL constructor throws confusing error on invalid scheme...
Read more >
This issue has been created since 2022-07-26. - IssueHint
This must be a bug with React Native, please report it here: https://github.com/facebook/react-native/issues ▸ Generating 'MyApp.app.dSYM' error Failed to ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found