Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Looks like your code needs to link with C++ standard library. Change these target build settings in your project and check if it works,</p> <pre><code>Apple LLVM compiler language-&gt; C++ language dialect-&gt; Compiler default Apple LLVM compiler language-&gt; C++ standard library-&gt; Compiler default </code></pre> <p><img src="https://i.stack.imgur.com/AJ69i.png" alt="enter image description here"></p> <p>Also, the warning on top indicates that your library <code>libFunFX.a</code> is not built for <code>i386</code> i.e. the iPhone simulator. To make sure here's what you can try.</p> <p>Open terminal, goto the folder which contains the library and use this command</p> <pre><code>lipo -info libFunFX.a ↵ //Output: Architectures in the fat file: libFunFX.a are: armv7 i386 </code></pre> <p>If it lists out i386 then no worries, else you need to communicate the owner to send you a FAT file containing slices for both the device (armv7/armv7s) and simulator(i386).</p> <hr> <p><strong>EDIT</strong></p> <p>I see there are two libraries in your project, combine both to create a single FAT file with following command.</p> <pre><code>lipo -create libFunFX.a libFunFXSim.a -output libFunFX_Univ.a </code></pre> <p>So now if you check,</p> <pre><code>lipo -info libFunFX_Univ.a //Output Architectures in the fat file: libFunFX_Univ.a are: armv7 (cputype (12) cpusubtype (11)) i386 </code></pre> <p>Changes in project files</p> <ul> <li>Change <code>AppDelegate.m</code> to <code>AppDelegate.mm</code></li> <li>Change ViewController.m to <code>ViewController.mm</code></li> <li>Add and link the above created <code>libFunFX_Univ.a</code> file instead of two separate .a files.</li> <li>Mark files <code>-fno-objc-arc</code> as below image</li> </ul> <p><img src="https://i.stack.imgur.com/vJthA.png" alt="enter image description here"></p> <p>Making these changes I was able to build your project successfully for simulator. I am not sure if you really want to use ARC because lot of the files are marked for manual memory management. In that case it would be easier to just do manual memory management for entire project. Just a suggestion!</p> <p>Hope that helps!</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