Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>This makes a lot of sense when you are trying to add a static library to your xcode projects. There are a couple steps required for doing this. First, make sure that the static library project is <strong>not</strong> open in XCode. </p> <p>Then start by dragging and dropping the static library xcodeproj file (from the Finder) onto your app's xcode project. <img src="https://i.stack.imgur.com/XIoWL.png" alt="StaticLib"></p> <p>After this you need to add this library to your app's build phases. Click on the main project, and select the BuildPhases tab of the target.</p> <p><img src="https://i.stack.imgur.com/vDc3r.png" alt="Build Phases"></p> <p>You're going to want to add the other project to the Target Dependencies and to your Link Binary With Libraries Section.</p> <p>Finally, the app needs to be aware of your headers. Therefore, you need to add the path to your static libraries classes to your User Header Search Paths. Go to the Build Settings of the Main Target and search for Header Search Path.</p> <p><img src="https://i.stack.imgur.com/s8tm7.png" alt="Header Search Path"></p> <p>This will make your app aware of the new static library.</p> <p>Sometimes you need to add a few Other Linker Flags. In the Build Settings search for Other Linker Flags and add <code>-all_load</code> and <code>-ObjC</code></p> <p><img src="https://i.stack.imgur.com/vahHr.png" alt="Other Linker Flags"></p> <p>Hope this helps, I know the first time I tried to do this I was banging my head against the wall for a while.</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