WARNING: xcodeproj is not installed or is not configured properly
Asked Answered
A

2

7

My nativescript project won't run, getting the error mentioned above. The Xcode command Line Tools is set.

Things i tried but didn't fix the problem:

sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
sudo xcode-select --reset
ns doctor ios

As you might have guessed, I have Xcode installed from the app store and I've also installed cocoapods and xcodeproj. This is the only warning that I get.

Any suggestions?

https://static.mcmap.net/file/mcmap/ZG-AbGLDKwfpKnMxcF_AZVLQamyA/byIaE.png

https://static.mcmap.net/file/mcmap/ZG-AbGLDKwfpKnMxcF_AZVLQamyA/TehVB.png

Abrahan answered 15/5, 2021 at 21:53 Comment(0)
C
16

Much like the cocoapods install, I had to direct where xcodeproj needed to be installed.

After running this:

sudo gem install -n /usr/local/bin xcodeproj

The issue resolved.

Cd answered 26/6, 2021 at 14:20 Comment(1)
This solved the problem, running fine now. Thank you!Abrahan
Y
2

Didn't work for me. Following your suggestion I tried:

sudo gem uninstall cocoapods
sudo gem install -n /usr/local/bin cocoapods

And it worked. I also had to run:

sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

In order to get rid of the "WARNING: Xcode is not installed or is not configured properly."

Mac OS 13.1 Ventura, M1, Xcode 14.2, tns 8.4.0

Yettie answered 2/1, 2023 at 23:18 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.