You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Shazron Abdullah (Created) (JIRA)" <ji...@apache.org> on 2012/02/21 07:35:34 UTC

[jira] [Created] (CB-270) Cordova Installer Fails

Cordova Installer Fails
-----------------------

                 Key: CB-270
                 URL: https://issues.apache.org/jira/browse/CB-270
             Project: Apache Callback
          Issue Type: Bug
          Components: iOS
         Environment: Mac OS X
            Reporter: Shazron Abdullah
            Assignee: Shazron Abdullah


Show the Installer Log and report an issue in the Google Groups or Cordova Issue Tracker (JIRA here).

 
*How:*
When the installer is launched, Apple-L to show the install log, then select "Show All Logs" from the drop-down list. Run through the installation until you get the error (don't close the installer down yet). Copy and Paste the log.

*Permissions Issues*
A previous installer (Cocos2D as an example that does this) installs their own templates using the Root user, causing permissions issues for the PhoneGap installer, which does not need root privileges to install.

 
Substitute [USERNAME] below for the name of your home account.

*The log might show this:*
{code}
/preinstall: mkdir: /Users/[USERNAME]/Library/Developer/Xcode/Templates/Project Templates: Permission denied
{code}

*In Terminal, if you do:*
{code}
ls -la "/Users/[USERNAME]/Library/Developer/Xcode/" and go to the row with Templates
{code}

*It would show for example:*
{code}
drwxr-xr-x 12 root staff 408 3 May 00:18 Templates
{code}

That's the problem, the owner of the folder is root. You'll have to reclaim this for your current user.
 
*How:*
{code}
sudo chown [USERNAME] "/Users/[USERNAME]/Library/Developer/Xcode/Templates"
{code}

 
*Run the installer again, and it should work this time.*

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (CB-270) Cordova Installer Fails

Posted by "Shazron Abdullah (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-270?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shazron Abdullah resolved CB-270.
---------------------------------

    Resolution: Fixed

follow the instructions in the issue
                
> Cordova Installer Fails
> -----------------------
>
>                 Key: CB-270
>                 URL: https://issues.apache.org/jira/browse/CB-270
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>         Environment: Mac OS X
>            Reporter: Shazron Abdullah
>            Assignee: Shazron Abdullah
>              Labels: installer
>
> Show the Installer Log and report an issue in the Google Groups or Cordova Issue Tracker (JIRA here).
>  
> *How:*
> When the installer is launched, Apple-L to show the install log, then select "Show All Logs" from the drop-down list. Run through the installation until you get the error (don't close the installer down yet). Copy and Paste the log.
> *Permissions Issues*
> A previous installer (Cocos2D as an example that does this) installs their own templates using the Root user, causing permissions issues for the PhoneGap installer, which does not need root privileges to install.
>  
> Substitute [USERNAME] below for the name of your home account.
> *The log might show this:*
> {code}
> /preinstall: mkdir: /Users/[USERNAME]/Library/Developer/Xcode/Templates/Project Templates: Permission denied
> {code}
> *In Terminal, if you do:*
> {code}
> ls -la "/Users/[USERNAME]/Library/Developer/Xcode/" and go to the row with Templates
> {code}
> *It would show for example:*
> {code}
> drwxr-xr-x 12 root staff 408 3 May 00:18 Templates
> {code}
> That's the problem, the owner of the folder is root. You'll have to reclaim this for your current user.
>  
> *How:*
> {code}
> sudo chown [USERNAME] "/Users/[USERNAME]/Library/Developer/Xcode/Templates"
> {code}
>  
> *Run the installer again, and it should work this time.*

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira