<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="477223188" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/31359" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/31359/hovercard" href="https://github.com/tensorflow/tensorflow/issues/31359">#31359</a></p>
<p dir="auto">Hi all,</p>
<p dir="auto">Trying to build Tensorflow for <a href="https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/makefile#ios">iOs.</a> The step <code class="notranslate">tensorflow/contrib/makefile/build_all_ios.sh</code> after around 20 minutes of building returns errors including <code class="notranslate">duplicate symbols for architecture armv7</code>. Please find the details bellow.</p>
<h3 dir="auto">Environment info</h3>
<p dir="auto">Operating System: Mac OS X 10.11.6 (15G31)<br>
Xcode 7.3.1 (7D1014)</p>
<h3 dir="auto">Steps to reproduce</h3>
<p dir="auto">In terminal:</p>
<ol dir="auto">
<li><code class="notranslate">git clone git@github.com:tensorflow/tensorflow.git</code></li>
<li><code class="notranslate">cd tensorflow</code></li>
<li><code class="notranslate">tensorflow/contrib/makefile/download_dependencies.sh</code></li>
<li><code class="notranslate">tensorflow/contrib/makefile/build_all_ios.sh</code></li>
</ol>
<h3 dir="auto">What have you tried?</h3>
<ol dir="auto">
<li>Removing the repository directory and going through the steps again.</li>
<li>Going through "Building by hand" steps described <a href="https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/makefile#building-by-hand">here</a>. Error: <code class="notranslate">ld: 44 duplicate symbols for architecture armv7s</code> (<a href="https://github.com/tensorflow/tensorflow/files/439452/tensorflow-error-log2.txt">Error log</a>).</li>
</ol>
<h3 dir="auto">Error log (<a href="https://github.com/tensorflow/tensorflow/files/439413/tensorflow-error-log.txt">Full log</a>)</h3>
<p dir="auto"><code class="notranslate">...</code><br>
<code class="notranslate">ld: 44 duplicate symbols for architecture armv7</code><br>
<code class="notranslate">clang: error: linker command failed with exit code 1 (use -v to see invocation)</code><br>
<code class="notranslate">make: *** [/Users/b0915218/Xcode/tensorflow/tensorflow/contrib/makefile/gen/bin/ios_ARMV7/benchmark]</code> <code class="notranslate">Error 1</code><br>
<code class="notranslate">+ '[' 2 -ne 0 ']'</code><br>
<code class="notranslate">+ echo 'armv7 compilation failed.'</code><br>
<code class="notranslate">armv7 compilation failed.</code><br>
<code class="notranslate">+ exit 1</code></p>