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.

Cannot Run RN 0.59 CLI's 'run-ios' on xCode 13

See original GitHub issue

I am maintaining an app that still runs on react native 0.59. I recently upgraded my MacBook to Big Sur, and now I am getting issues attempting to run my react native app that is on 0.59.10. Our script in package.json to run a version of our iOS app looks like:

"ios-debug": "node node_modules/react-native/local-cli/cli.js run-ios"

I am getting the following error after upgrading to Big Sur and xCode 13:

info Found Xcode workspace {APPNAME}.xcworkspace
xcrun: error: Failed to locate 'instruments'.
xcrun: error: unable to find utility "instruments", not a developer tool or in PATH
error Command failed: xcrun instruments -s
xcrun: error: Failed to locate 'instruments'.
xcrun: error: unable to find utility "instruments", not a developer tool or in PATH

I see this tool (instruments) has been removed from xCode. Since @react-native-community/cli is a transitive library that react-native includes itself, how do I go about using a newer version of the CLI tools? I attempted to install @react-native-community/cli-platform-ios to see if that would get me anywhere, but I had no luck finding a replacement to the node node_modules/react-native/local-cli/cli.js run-ios that the ios-debug script runs. Does anyone have any advice? We are in the middle of upgrading said app, but we would really like to continue make changes to our existing app until our updated app is ready. Any help is really appreciated, thank you!

Issue Analytics

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

github_iconTop GitHub Comments

9reactions
cbrevikcommented, Sep 23, 2021

We’re running RN 0.63.1 with the same issue.

Looks like in Xcode 13 instruments was removed, which will possibly mean that this no longer works for any version?

https://developer.apple.com/documentation/xcode-release-notes/xcode-13-release-notes

The deprecated instruments command-line tool has been removed; instead, use xctrace. (74412969)

And seems like it is used in the CLI here: https://github.com/react-native-community/cli/blob/master/packages/platform-ios/src/commands/runIOS/index.ts#L402

5reactions
arufiancommented, Sep 29, 2021

I believe it was fixed somewhere around 0.64. Can you check the release notes of the CLI and re-apply the fix to older CLI versions?

Nope, I already on the latest version. It still not working. as @cbrevik said above, instruments was removed by Apple on XCode 13. CLI team should update their code to make it work. 🙏

Read more comments on GitHub >

github_iconTop Results From Across the Web

Xcode 13 cannot run project genera… - Apple Developer
Hello,. I cannot use Xcode 13 in order to run the project previously generated by Xcode 12.5.1. I got an error message on...
Read more >
Unable to build react native project after updating to xcode 11.0
Somehow my xcode got updated to version 11.0 and after that i am unable to build the project using react-native run-ios command. I...
Read more >
error no simulator available with name "iphone 13". info run cli ...
Hello,. I am using latest flutter 2.5.1 after upgrading to latest flutter i cannot run applcation via VSCode on iOS simulator (it runs...
Read more >
Upgrading React Native to version 0.59 and beyond: a step-by ...
This is related to people running xCode 11 and later, which doesn't seem to be compatible with previous versions of React Native CLI....
Read more >
Running On Simulator - React Native
The default is "iPhone 13" . If you wish to run your app on an iPhone SE (2nd generation), run npx react-native run-ios...
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