• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How is the default configuration selected on the command line ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How is the default configuration selected on the command line ?


  • Subject: How is the default configuration selected on the command line ?
  • From: Jerome Lacoste <email@hidden>
  • Date: Fri, 12 Dec 2014 11:58:07 +0100

Hello,

I am trying to understand how the default configuration is picked up when building from a workspace on the command line. I seem to have specified Release as default, but without -configuration Release or -configuration DEFAULT it picks up Debug.

Given https://dl.dropboxusercontent.com/u/116774/xcodebuild.example.2.zip

The default configuration for the workspace seems to be Release.

Yet I get the following results:

DEVELOPER_DIR=/Applications/Xcode6.0.1.app/Contents/Developer xcodebuild  -list
Information about project "CocoaPodsExample":
    Targets:
        CocoaPodsExample
        CocoaPodsExampleTests

    Build Configurations:
        Debug
        Release

    If no build configuration is specified and -scheme is not passed then "Release" is used.

    Schemes:
        CocoaPodsExample

DEVELOPER_DIR=/Applications/Xcode6.0.1.app/Contents/Developer xcodebuild -scheme CocoaPodsExample -workspace CocoaPodsExample.xcworkspace build | grep "CONFIGURATION"
=== BUILD TARGET Pods-AFNetworking OF PROJECT Pods WITH CONFIGURATION Debug ===
=== BUILD TARGET Pods OF PROJECT Pods WITH CONFIGURATION Debug ===
=== BUILD TARGET CocoaPodsExample OF PROJECT CocoaPodsExample WITH CONFIGURATION Debug ===
=== BUILD TARGET CocoaPodsExampleTests OF PROJECT CocoaPodsExample WITH CONFIGURATION Debug ===

And I discovered I could use DEFAULT as configuration to make it work as I expected it would:

DEVELOPER_DIR=/Applications/Xcode6.0.1.app/Contents/Developer xcodebuild -scheme CocoaPodsExample -workspace CocoaPodsExample.xcworkspace -configuration DEFAULT build | grep "CONFIGURATION"
=== BUILD TARGET Pods-AFNetworking OF PROJECT Pods WITH THE DEFAULT CONFIGURATION (Release) ===
=== BUILD TARGET Pods OF PROJECT Pods WITH THE DEFAULT CONFIGURATION (Release) ===
=== BUILD TARGET CocoaPodsExample OF PROJECT CocoaPodsExample WITH THE DEFAULT CONFIGURATION (Release) ===
=== BUILD TARGET CocoaPodsExampleTests OF PROJECT CocoaPodsExample WITH THE DEFAULT CONFIGURATION (Release) ===

Not really sure if this is expected or not

Cheers,
--
Jerome Lacoste, +47 40867729, WeWantToKnow
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: How is the default configuration selected on the command line ?
      • From: Joar Wingfors <email@hidden>
  • Prev by Date: xcodebuild v6 hangs if some workspace user specific files are missing
  • Next by Date: Specifying iCloud Container Environment
  • Previous by thread: xcodebuild v6 hangs if some workspace user specific files are missing
  • Next by thread: Re: How is the default configuration selected on the command line ?
  • Index(es):
    • Date
    • Thread