[
https://issues.apache.org/jira/browse/CB-1223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13433464#comment-13433464
]
Shazron Abdullah edited comment on CB-1223 at 8/14/12 7:00 AM:
---------------------------------------------------------------
Update to workaround - turns out that setting is the key to getting xcodebuild
to recognize the CORDOVALIB environment variable, for "Source Trees":
{code}
defaults write com.apple.dt.Xcode IDESourceTreeDisplayNames -dict-add
CORDOVALIB ""
{code}
then you would do in your shell:
{code}
CORDOVALIB=/path/to/your/cordovalib xcodebuild [PROJECTNAME].xcodeproj
{code}
was (Author: shazron):
Update to workaround - turns out this setting is the key to getting
xcodebuild's -xcconfig parameter to work, for "Source Trees":
{code}
defaults write com.apple.dt.Xcode IDESourceTreeDisplayNames -dict-add
CORDOVALIB ""
{code}
> 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