Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I would follow the description available in Xcode's Help topic "<strong>Linking Against Your Library</strong>" in chapter <a href="https://developer.apple.com/library/ios/technotes/iOSStaticLibraries/Articles/configuration.html#//apple_ref/doc/uid/TP40012554-CH3-SW1" rel="nofollow">Configuration Your Application</a> in <a href="https://developer.apple.com/library/ios/technotes/iOSStaticLibraries/Introduction.html" rel="nofollow">Introduction to Using Static Libraries in iOS</a> (you may search within Xcode Help, too).</p> <p>Except that I would recommend to include your headers from libraries always using angle brackets:</p> <p><code>#import &lt;ConversionCalculator/ConversionCalculator.h&gt;</code></p> <p>Using double quotes may inadvertently search and find files with the same name in some sub-folder relative to the file where this import directive is written. Only after there was no file in any sub-folder the preprocessor starts searching with the specified header search paths.</p> <p>Using angle brackets, the preprocessor immediately searches only at the specified header search paths.</p> <p>So, since you actually want to find headers for the <em>corresponding</em> library, always use angle brackets.</p> <p><strong>Note:</strong> If you follow the recommendation to <em>create</em> a static library project, you don't need to explicitly set a header search path in the target that links agains the library: Xcode will already add a search path:</p> <p><code>$(BUILT_PRODUCTS_DIR)/includes</code></p> <p>Your library headers are located in</p> <p><code>$(BUILT_PRODUCTS_DIR)/includes/&lt;product-name&gt;</code></p> <p>which are placed there through the "Copy-Files" phase of the iOS static library target, whose "Destination" is set to "Products Directory" and whose "Subpath" is set to "includes/${PRODUCT_NAME}" per default.</p> <p>You may change these default settings to other reasonable and sensible values. (if you do, consider the the consequences for Xcode's default search paths!)</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.
 

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