Is it possible with Delphi to create a static library for iOS?
<p>I would like to use existing Pascal source (no user interface) in an iOS app (Xcode project). So I need to create a static library, which I can then add to my iOS project. </p>

<p>Is there a way to create a static library (*.a) for the arm architecture within Delphi? Is there a compiler/linker option?</p>

<p>Or maybe there's another way to do this?</p>

<p><strong>Edit:</strong><br>
I created a osx test project and used the library file from Dcp\OSX32 path and manually created the header file. </p>

<p>When I build the Xcode project I get the following error:</p>

<blockquote>
  <p>ld: warning: ignoring file /Path/lib/testlib.a, file was built for
  archive which is not the architecture being linked (x86_64):
  /Path/lib/testlib.a</p>
</blockquote>

<p>lipo says:</p>

<pre><code>lipo -info /Path/lib/testlib.a  fatal error:
&gt; /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo:
&gt; archive with no architecture specification: /Path/lib/testlib.a (can't
&gt; determine architecture for it)
</code></pre>

<p>ar:</p>

<pre><code>ar -t /Path/lib/testlib.a  
/  
//  
/1
</code></pre>

<p>The /Path/lib/testlib.a file was generated with a Delphi Package Project. The file seems not usable in an Xcode project.</p>