Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>In an .xcconfig file, you can have </p> <pre><code>OTHER_CFLAGS[sdk=iphoneos*] = foobar OTHER_CFLAGS[sdk=iphonesimulator*] = barfoo </code></pre> <p>Any build setting can be conditional on a number of things, for example the shortname for an sdk. The device SDKs are named iphoneos-4.0 for example, and sim iphonesimulator-4.0. The above thus gets you the 'foobar' as CFLAG for the device, and 'barfoo' for the sim.</p> <p>To get started with xcconfigs quickly: </p> <ol> <li>New file > Other > Configuration Settings File</li> <li>Open the project or target editor (cmd-alt-E for the target one)</li> <li>Select a setting you want to customize (like cflags), and copy it with cmd-c</li> <li>Paste in the new xcconfig file</li> <li>Modify as above</li> <li>In your project or target editor's lower right corner, select your xcconfig file as "Based On". </li> </ol> <p>Notice how the build settings UI now lets you edit the conditionals... You can create new conditionals with the lower left button, but it won't let you set "iphoneos*" for example, only specific versions.</p> <p>Note that the magical $(inherited) lets you make a setting that inherits project settings but overrides just a part of it, like so:</p> <pre><code>OTHER_CFLAGS[sdk=iphoneos*] = $(inherited) foobar OTHER_CFLAGS[sdk=iphonesimulator*] = $(inherited) barfoo </code></pre> <p>I don't know a good resource for xcconfigs, but this'll get you started anyway: <a href="http://robnapier.net/blog/build-system-1-build-panel-360#more-360" rel="noreferrer">http://robnapier.net/blog/build-system-1-build-panel-360#more-360</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload