FFmpeg libavcodec.a Xcode linker issues - Undefined symbols for architecture arm64
<p>I've build FFmpeg for iOS using this script:
<a href="https://github.com/kewlbear/FFmpeg-iOS-build-script" rel="nofollow noreferrer">https://github.com/kewlbear/FFmpeg-iOS-build-script</a></p>

<p>I built for all architectures, then I built again just for arm64 (as my desired arch), and I've even used other build scripts to build FFmpeg for iOS. However, I keep running into the same issues:</p>

<pre><code>Undefined symbols for architecture arm64:
  "_VTDecompressionSessionCreate", referenced from:
      _av_videotoolbox_default_init2 in libavcodec.a(videotoolbox.o)
  "_VTDecompressionSessionDecodeFrame", referenced from:
      _videotoolbox_common_end_frame in libavcodec.a(videotoolbox.o)
  "_VTDecompressionSessionInvalidate", referenced from:
      _av_videotoolbox_default_free in libavcodec.a(videotoolbox.o)
  "_VTDecompressionSessionWaitForAsynchronousFrames", referenced from:
      _videotoolbox_common_end_frame in libavcodec.a(videotoolbox.o)
</code></pre>

<p>I've tried</p>

<ul>
<li>changing the architecture settings in Build Settings of my project</li>
<li>setting Dead Code Stripping to NO</li>
<li>Double checked my library/linker search paths</li>
</ul>

<p>Note that all the linker errors come from the same static library (libavcodec.a). This leads me to believe that I'm missing some other library that the linker needs specifically for these symbols. I've added all the libraries that are mentioned for an FFmpeg build - see image below:</p>

<p><a href="https://i.stack.imgur.com/JLMRM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JLMRM.png" alt="snapshot of linked binaries/libraries"></a></p>

<p>Any help is appreciated. Thanks!</p>