Skip to content

TNS doctor doesn't recognize Xcode (High Sierra) #3174

@philipfeldmann

Description

@philipfeldmann

Did you verify this is a real problem by searching Stack Overflow and the other open issues in this repo?

None of the provided solutions worked

Tell us about the problem

When running tns doctor I get the following warning, even though Xcode is installed:

WARNING: Xcode is not installed or is not configured properly.
You will not be able to build your projects for iOS or run them in the iOS Simulator.
To be able to build for iOS and run apps in the native emulator, verify that you have installed Xcode.

When trying to run the setup script, after confirming that I have Xcode installed, I get the following error:

xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
Xcode is not installed or not configured properly. Download, install, set it up and run this script again.

Which platform(s) does your issue occur on?

iOS

Please provide the following version numbers that your issue occurs with:

  • CLI: 3.2.1
    (No other information as there's no project yet)

Please tell us how to recreate the issue in as much detail as possible.

I'm on High Sierra with Xcode 9.0.1 (both are the latest versions to this date). I've followed the official guide: https://docs.nativescript.org/angular/start/ns-setup-os-x

After running tns doctor I get the warnings as described above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions