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 (JIRA)" <ji...@apache.org> on 2012/08/10 02:09:19 UTC

[jira] [Commented] (CB-1223) CORDOVALIB Xcode variable - allow this to be read in from xcodebuild cli

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

Shazron Abdullah commented on CB-1223:
--------------------------------------

My experiments show that it is not possible since if you look in the .pbxproj file, the CordovaLib.xcodeproj is explicitly linked to a sourceTree location:
{code}
01BF52D109A57CC0062928A /* CordovaLib.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; path = CordovaLib.xcodeproj; sourceTree = CORDOVALIB; };
{code}

.. thus it will always look in the sourceTree for the location. 

You would think you can set an absolute path, with the $(CORDOVALIB) env variable set:
{code}
303A516315D485BD00720ACB /* CordovaLib.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = CordovaLib.xcodeproj; path = "$(CORDOVALIB)/CordovaLib.xcodeproj"; sourceTree = "<absolute>"; };
{code}

... but Xcode's project parser does not expand the definition, so the build does not work.


                
> CORDOVALIB Xcode variable - allow this to be read in from xcodebuild cli
> ------------------------------------------------------------------------
>
>                 Key: CB-1223
>                 URL: https://issues.apache.org/jira/browse/CB-1223
>             Project: Apache Cordova
>          Issue Type: Task
>          Components: iOS
>    Affects Versions: Master
>            Reporter: Shazron Abdullah
>            Assignee: Shazron Abdullah
>             Fix For: 2.1.0
>
>
> Currently if you pass in a CORDOVALIB variable to xcodebuild it is ignored, it still tries to read from the Xcode preferences plist com.apple.dt.Xcode and/or the .xcconfig
> This is important for environments (CI) that have multiple versions of Cordova installed and switch between them through the command-line

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