You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Adalbert Wysocki (JIRA)" <ji...@apache.org> on 2013/01/09 05:38:16 UTC

[jira] [Comment Edited] (CB-2175) build scripts fail when project path contains spaces

    [ https://issues.apache.org/jira/browse/CB-2175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13547628#comment-13547628 ] 

Adalbert Wysocki edited comment on CB-2175 at 1/9/13 4:37 AM:
--------------------------------------------------------------

The problem above is for Android... and easy to fix.

In ios case it looks like there is a different problem and I am still looking at it... any idea?

aldo:mobile-wrapper aldo$ ios/cordova/debug 
Build settings from command line:
    ARCHS = i386
    CONFIGURATION_BUILD_DIR = /Users/aldo/Documents/Aptana Studio 3 Workspace/mobile-wrapper/ios/cordova/../build
    SDKROOT = iphonesimulator6.0
    VALID_ARCHS = i386

xcodebuild: error: The project 'clearbonmobile.xcodeproj' does not contain a target named 'CordovaLib'.

Whereas when I use a location CONFIGURATION_BUILD_DIR without spaces things work fine:

aldo:mobile-wrapper aldo$ ios/cordova/debug 
Build settings from command line:
    ARCHS = i386
    CONFIGURATION_BUILD_DIR = /Users/aldo/Documents/xcode/mobile-wrapper/ios/build
    SDKROOT = iphonesimulator6.0
    VALID_ARCHS = i386

=== CLEAN NATIVE TARGET CordovaLib OF PROJECT CordovaLib WITH CONFIGURATION Debug ===
Check dependencies


                
      was (Author: adalbertwysocki@gmail.com):
    The problem above is for Android... and easy to fix.

In ios case it looks like there is a different problem and I am still looking at it... any idea?

aldo:mobile-wrapper aldo$ ios/cordova/debug 
Build settings from command line:
    ARCHS = i386
    CONFIGURATION_BUILD_DIR = /Users/aldo/Documents/Aptana Studio 3 Workspace/mobile-wrapper/ios/cordova/../build
    SDKROOT = iphonesimulator6.0
    VALID_ARCHS = i386

xcodebuild: error: The project 'clearbonmobile.xcodeproj' does not contain a target named 'CordovaLib'.

Whereas when I use a location CONFIGURATION_BUILD_DIR without spaces things work fine:

Adalberts-MacBook-Air:mobile-wrapper aldo$ ios/cordova/debug 
Build settings from command line:
    ARCHS = i386
    CONFIGURATION_BUILD_DIR = /Users/aldo/Documents/xcode/mobile-wrapper/ios/build
    SDKROOT = iphonesimulator6.0
    VALID_ARCHS = i386

=== CLEAN NATIVE TARGET CordovaLib OF PROJECT CordovaLib WITH CONFIGURATION Debug ===
Check dependencies


                  
> build scripts fail when project path contains spaces 
> -----------------------------------------------------
>
>                 Key: CB-2175
>                 URL: https://issues.apache.org/jira/browse/CB-2175
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CLI
>    Affects Versions: 2.2.0
>         Environment: Mac os
>            Reporter: Adalbert Wysocki
>            Assignee: Filip Maj
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> When the project is located in a path with spaces, the clean/debug... cordova build scripts are failing.
> Fix: double quote paths:
> clean (L24):
> bash $CORDOVA_PATH/cordova clean
> =>
> bash "$CORDOVA_PATH/cordova" clean 
> cordova (L102)
> (cd $PROJECT_PATH && $1)
> =>
> (cd "$PROJECT_PATH" && $1)

--
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