Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You are seemingly building for the simulator, which corresponds to the i386 architecture, but you are only linking with an iphone (arm) library.</p> <p>To solve this, you should compile your library libICodeMathUtils.a both for i386 and arm.</p> <p>After lookng at the tutorial you followed: a better way of integrating a static library in your project is by defining a dependency. You can look at this S.O. article for <a href="https://stackoverflow.com/questions/5986586/xcode-4-how-to-add-static-library-target-dependency-to-project">Xcode 4</a>, and to this one for <a href="https://stackoverflow.com/questions/6179037/build-dependencies-and-static-libraries-in-xcode-3">Xcode 3</a> (steps are given in the question itself).</p> <p>Another option you have is building your library separately for i386 (simulator) and arm (device) and then use the command line tool <code>lipo</code> to make a fat library that you can link in your MathTest project. Check <code>man lipo</code> to know hoy to use the tool.</p> <p>EDIT: about your comment </p> <blockquote> <p>My static library does not show in Target Dependencies !! </p> </blockquote> <p>have you dragged the static library from the included project tree to the target? the steps for Xcode 3 are:</p> <ol> <li><p>add the library project as an included project;</p></li> <li><p>find the static library in the included project and drag it on to your main target, adding it as a linked framework;</p></li> <li><p>finally, in your target info pane, you can add the dependency.</p></li> </ol> <p>Xcode4 seems to be able to automatically figure out dependencies, provided the targets are added to the project Scheme. You can do so by executing: Edit Scheme -> Build -> and then adding targets from your workspace. See also this <a href="https://stackoverflow.com/questions/5986586/xcode-4-how-to-add-static-library-target-dependency-to-project">S.O. question</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