You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Becky Gibson (JIRA)" <ji...@apache.org> on 2013/02/08 23:09:13 UTC
[jira] [Comment Edited] (CB-2404) After npm upgrade, cordova-cli
tells user that xcode is not installed
[ https://issues.apache.org/jira/browse/CB-2404?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13574850#comment-13574850 ]
Becky Gibson edited comment on CB-2404 at 2/8/13 10:08 PM:
-----------------------------------------------------------
Interesting. I ran this once and it worked (I had to use sudo). Then, I realized that I might have my xcode-selects variable set wrong since I recently downloaded Xcode 4.6 via the iOS downloads page rather than via the AppStore. I put Xcode 4.6 into a subdirectory: /Applications/Xcode46/Xcode.app rather than right in the Applications folder. I realized that I should have also updated my xcode-select variable. I did that:
sudo /usr/bin/xcode-select -switch /Applications/Xcode46/Xcode.app/Contents/Developer
Then when I run sudo npm install -g cordova again, iOS fails:
WARNING: Your system does not meet requirements to create iosprojects. See error output below.
Xcode is not installed. Cannot add iOS platform.
SKIPPING ios bootstrap.
So, I would guess it has to do with the xcode-selects value.
Also, FWIW running the suggested sudo chown -R <yourusername> /usr/local/lib/node_modules/cordova command and it didn't work for me to eliminate the need to run sudo. However, running
sudo chown -R <yourusername> /usr/local/lib/node_modules (rather than just to cordova dir) and then running: npm install -g cordova (without the sudo now works) I do NOT get the iOS error?????? So maybe it has to do with permissions?
was (Author: becka11y):
Interesting. I ran this once and it worked (I had to use sudo). Then, I realized that I might have my xcode-selects variable set wrong since I recently downloaded Xcode 4.6 via the iOS downloads page rather than via the AppStore. I put Xcode 4.6 into a subdirectory: /Applications/Xcode46/Xcode.app rather than right in the Applications folder. I realized that I should have also updated my xcode-select variable. I did that:
sudo /usr/bin/xcode-select -switch /Applications/Xcode46/Xcode.app/Contents/Developer
Then when I run sudo npm install -g cordova again, iOS fails:
WARNING: Your system does not meet requirements to create iosprojects. See error output below.
Xcode is not installed. Cannot add iOS platform.
SKIPPING ios bootstrap.
So, I would guess it has to do with the xcode-selects value.
Also, FWIW running the suggested sudo chown -R <yourusername> /usr/local/lib/node_modules/cordova command and it didn't work for me. I haven't investigate that yet.
> After npm upgrade, cordova-cli tells user that xcode is not installed
> ---------------------------------------------------------------------
>
> Key: CB-2404
> URL: https://issues.apache.org/jira/browse/CB-2404
> Project: Apache Cordova
> Issue Type: Bug
> Components: CLI
> Affects Versions: 2.4.0
> Environment: Mac OS X w/ xcodebuild version 4.6
> Reporter: Filip Maj
> Assignee: Filip Maj
> Fix For: 2.5.0
>
>
> It was after a {{npm update -g cordova}}.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira