Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Which kind of search path are you talking about? The system search paths are automatically handled for you, so I assume that your problem is some custom library.</p> <p>There are two solutions. You can use conditional settings, or you can use universal libraries. I've grown to love universal libraries, but haven't had time to write up full instructions yet. The way they work is to build a static library for the simulator and for the device, and then use <code>lipo</code> to glue them together. You can then use the same library for both platforms. I really need to write up full instructions for this because it's very useful.</p> <p>There are two more approaches. First you can use conditional settings. In xcconfig files (see <a href="http://robnapier.net/blog/build-system-1-build-panel-360" rel="noreferrer">my talk</a> on why to use xcconfig files), you put something like this:</p> <pre><code>LD_FLAGS[sdk=iphonesimulator*] = -lsasl2 </code></pre> <p>That links sasl2 just for the simulator. Set whatever you flag you need. Another solution is variable substitution:</p> <pre><code>HEADER_SEARCH_PATHS = "$(SRCROOT)/MyPackage/build/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/include" </code></pre> <p>This assumes that <code>MyPackage</code> is in a subdirectory of your project and it was built into the <code>build</code> directory. It'll look in, for example, <code>Debug-iphoneos</code> for its variables.</p> <p>You can also do both of the above in the build pane, but I really recommend folks get away from the build pane for any serious project. Variable substitution works identically in the build pane, and conditional settings are accessible from right-clicking on a setting.</p>
    singulars
    1. This table or related slice is empty.
    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. 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.
    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