Cannot Run RN 0.59 CLI's 'run-ios' on xCode 13
See original GitHub issueI 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:
- Created 2 years ago
- Reactions:10
- Comments:7 (3 by maintainers)
Top GitHub Comments
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
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
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. 🙏