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.

[react-native CLI] info command attempts to run xcodebuild on non-macOS environments, prints error

See original GitHub issue

Is this a bug report?

Yes

Have you read the Contributing Guidelines?

(Write your answer here.)

Environment

Environment: OS: Windows 10 Node: 8.1.3 Yarn: 1.2.0 npm: 5.0.3 Watchman: Not Found Error: unable to print environment info { Error: not found: xcodebuild at getNotFoundError (C:\AwesomeProject\node_modules\which\which.js:13:12) at Function.whichSync [as sync] (C:\AwesomeProject\node_modules\which\which.js:134:9) at getXcodeVersion (C:\AwesomeProject\node_modules\envinfo\envinfo.js:17:25) at Object.module.exports.print (C:\AwesomeProject\node_modules\envinfo\envinfo.js:136:28) at Object.info (C:/AwesomeProject/node_modules/react-native/local-cli/info/info.js:17:13) at Promise.resolve.then (C:/AwesomeProject/node_modules/react-native/local-cli/cliEntry.js:109:26) at <anonymous> at process._tickCallback (internal/process/next_tick.js:169:7) at Function.Module.runMain (module.js:607:11) at startup (bootstrap_node.js:158:16) code: ‘ENOENT’ }

Steps to Reproduce

On Windows 10 , Run react-native info

Expected Behavior

Print info

Actual Behavior

When I run react-native info in windows 10, I have this result

Scanning 914 folders for symlinks in C:\AwesomeProject\node_modules (47ms)

Environment:
  OS:  Windows 10
  Node:  8.1.3
  Yarn:  1.2.0
  npm:  5.0.3
  Watchman:  Not Found
Error: unable to print environment info
{ Error: not found: xcodebuild
    at getNotFoundError (C:\AwesomeProject\node_modules\which\which.js:13:12)
    at Function.whichSync [as sync] (C:\AwesomeProject\node_modules\which\which.js:134:9)
    at getXcodeVersion (C:\AwesomeProject\node_modules\envinfo\envinfo.js:17:25)
    at Object.module.exports.print (C:\AwesomeProject\node_modules\envinfo\envinfo.js:136:28)
    at Object.info (C:/AwesomeProject/node_modules/react-native/local-cli/info/info.js:17:13)
    at Promise.resolve.then (C:/AwesomeProject/node_modules/react-native/local-cli/cliEntry.js:109:26)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:169:7)
    at Function.Module.runMain (module.js:607:11)
    at startup (bootstrap_node.js:158:16) code: 'ENOENT' }

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
tabrindlecommented, Oct 23, 2017

Just approved it, will make a release momentarily!

1reaction
LEQADAcommented, Oct 23, 2017

Created a PR for that repository. Not sure how it’ll be reviewed though https://github.com/tabrindle/envinfo/pull/4

Read more comments on GitHub >

github_iconTop Results From Across the Web

“xcodebuild” command but it exited with error code 65
After upgrading to React Native 0.59.9 and React 16.8.3 and attempted to run react-native run-ios, I get this error: info Undefined symbols ......
Read more >
error Failed to build iOS project. We ran "xcodebuild ...
I've try 2 times run the same command and now it works. 1) I removed the folder "/ios/build" and rerun. 2) After fail,...
Read more >
Unusual errors in xcodebuild | Apple Developer Forums
I am getting the following errors when running xcodebuild from the command line: xcodebuild[22187:279813] Requested but did not find extension point with ...
Read more >
Setting up the development environment
Run the following command to create a new React Native project called "AwesomeProject": npm; Yarn. npx create-expo-app AwesomeProject
Read more >
failed to build ios project. we ran "xcodebuild" command ...
We ran "xcodebuild" command but it exited with error code 65 ... React-Native CLI run-ios script attempts to run app on non-existent simulator....
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