今天在做RevMob结合的时候出现错误

/ 0评 / 0
<span class="typ">Undefined</span><span class="pln"> symbols </span><span class="kwd">for</span><span class="pln"> architecture x86_64</span><span class="pun">:</span>   <span class="str">"_AVMediaTypeVideo"</span><span class="pun">,</span><span class="pln">
referenced from</span><span class="pun">:</span>
      <span class="pun">-[</span><span class="typ">RevMobDeviceInfo</span><span class="pln"> cameraPermission</span><span class="pun">]</span><span class="pln"> in </span><span class="typ">RevMobAds</span><span class="pun">(</span><span class="typ">RevMobDeviceInfo</span><span class="pun">.</span><span class="pln">o</span><span class="pun">)</span><span class="pln">
      ___99</span><span class="pun">-[</span><span class="typ">RevMobFullscreen</span><span class="pln"> proceedLoadWithSuccessHandler</span><span class="pun">:</span><span class="pln">andLoadFailHandler</span><span class="pun">:</span><span class="pln">onClickHandler</span><span class="pun">:</span><span class="pln">onCloseHandler</span><span class="pun">:]</span><span class="pln">_block_invoke106
in </span><span class="typ">RevMobAds</span><span class="pun">(</span><span class="typ">RevMobFullscreen</span><span class="pun">.</span><span class="pln">o</span><span class="pun">)</span>   <span class="str">"_OBJC_CLASS_$_AVCaptureDevice"</span><span class="pun">,</span><span class="pln">
referenced from</span><span class="pun">:</span><span class="pln">
      objc</span><span class="pun">-</span><span class="kwd">class</span><span class="pun">-</span><span class="pln">ref in </span><span class="typ">RevMobAds</span><span class="pun">(</span><span class="typ">RevMobDeviceInfo</span><span class="pun">.</span><span class="pln">o</span><span class="pun">)</span>   <span class="str">"_OBJC_CLASS_$_AVURLAsset"</span><span class="pun">,</span><span class="pln"> referenced from</span><span class="pun">:</span><span class="pln">
      objc</span><span class="pun">-</span><span class="kwd">class</span><span class="pun">-</span><span class="pln">ref in </span><span class="typ">RevMobAds</span><span class="pun">(</span><span class="typ">RevMobFullscreen</span><span class="pun">.</span><span class="pln">o</span><span class="pun">)</span>   <span class="str">"_OBJC_CLASS_$_CLBeaconRegion"</span><span class="pun">,</span><span class="pln"> referenced from</span><span class="pun">:</span><span class="pln">
      objc</span><span class="pun">-</span><span class="kwd">class</span><span class="pun">-</span><span class="pln">ref in </span><span class="typ">RevMobAds</span><span class="pun">(</span><span class="typ">RevMobBeaconManager</span><span class="pun">.</span><span class="pln">o</span><span class="pun">)</span>   <span class="str">"_OBJC_CLASS_$_CLLocationManager"</span><span class="pun">,</span><span class="pln"> referenced from</span><span class="pun">:</span><span class="pln">
      objc</span><span class="pun">-</span><span class="kwd">class</span><span class="pun">-</span><span class="pln">ref in </span><span class="typ">RevMobAds</span><span class="pun">(</span><span class="typ">RevMobDeviceInfo</span><span class="pun">.</span><span class="pln">o</span><span class="pun">)</span><span class="pln">
      objc</span><span class="pun">-</span><span class="kwd">class</span><span class="pun">-</span><span class="pln">ref in </span><span class="typ">RevMobAds</span><span class="pun">(</span><span class="typ">RevMobBeaconManager</span><span class="pun">.</span><span class="pln">o</span><span class="pun">)</span>   <span class="str">"_kCLDistanceFilterNone"</span><span class="pun">,</span><span class="pln"> referenced from</span><span class="pun">:</span>
      <span class="pun">-[</span><span class="typ">RevMobDeviceInfo</span><span class="pln"> getUserLocation</span><span class="pun">]</span><span class="pln"> in </span><span class="typ">RevMobAds</span><span class="pun">(</span><span class="typ">RevMobDeviceInfo</span><span class="pun">.</span><span class="pln">o</span><span class="pun">)</span>   <span class="str">"_kCLLocationAccuracyBest"</span><span class="pun">,</span><span class="pln">
referenced from</span><span class="pun">:</span>
      <span class="pun">-[</span><span class="typ">RevMobDeviceInfo</span><span class="pln"> getUserLocation</span><span class="pun">]</span><span class="pln"> in </span><span class="typ">RevMobAds</span><span class="pun">(</span><span class="typ">RevMobDeviceInfo</span><span class="pun">.</span><span class="pln">o</span><span class="pun">)</span><span class="pln"> ld</span><span class="pun">:</span><span class="pln"> symbol</span><span class="pun">(</span><span class="pln">s</span><span class="pun">)</span><span class="pln"> not found </span><span class="kwd">for</span><span class="pln"> architecture
x86_64 clang</span><span class="pun">:</span><span class="pln"> error</span><span class="pun">:</span><span class="pln"> linker command failed with exit code </span><span class="lit">1</span> <span class="pun">(</span><span class="pln">use </span><span class="pun">-</span><span class="pln">v
to see invocation</span><span class="pun">)</span>

解决办法:

加入:AVFoundation 和 CoreLocation frameworks

发表评论

邮箱地址不会被公开。 必填项已用*标注