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

NativeScript can only run in Xcode version 6.0 or greater error is shown on every iOS command #4440

Closed
rosen-vladimirov opened this issue Mar 18, 2019 · 0 comments
Assignees
Labels
Milestone

Comments

@rosen-vladimirov
Copy link
Contributor

rosen-vladimirov commented Mar 18, 2019

Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

  • CLI: 5.2.3
  • Cross-platform modules: Not applicable
  • Android Runtime: Not applicable
  • iOS Runtime: Not applicable
  • Plugin(s): Not applicable

Describe the bug
Whenever I try to execute tns run ios, tns prepare ios, tns build ios, tns debug ios, etc. (i.e. every iOS related command), I receive an error: NativeScript can only run in Xcode version 6.0 or greater. However, my Xcode version is 10.1 (output of xcodebuild -version is:

Xcode 10.1
Build version 10B61

To Reproduce
The issue happens when the head command is overwritten by some other executable with head name. This happens in some cases related to Python, Go or XAMPP installations. The easiest way to reproduce the same behavior is to follow the steps below:

  1. tns create myApp
  2. cd myApp
  3. echo "" > head (This will create file called head in your project directory.
  4. chmod +x head (This will make the currently created head file executable.
  5. Execute any iOS related command in the following manner:
PATH=`pwd`:$PATH tns prepare ios

This will set the PATH variable to contain the current working directory in the first place of your PATH, this way the head file we've just created will be used instead of the original head. NOTE: This command will set the PATH only for current command, so no need to worry about messing your machine.

Expected behavior
CLI should allow me to execute iOS related commands.

Related to: #3189 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants