我使用RevMob作为广告来源已经有一段时间了。他们刚刚推出奖励视频广告,所以我尝试添加他们的新框架。当我将新框架拖到我的Xcode项目(与现有框架的名称相同: RevMobAds.framework)中时,我立即收到了一个错误。我很快删除了框架,但在我的项目中仍然有8个错误:错误。我查阅了很多这方面的资料,这是我所尝试过的:
下面是我的错误的样子:(所有粗体都是红色的错误)
Undefined symbols for architecture x86_64: "_AVMediaTypeVideo",
referenced from:
-[RevMobDeviceInfo cameraPermission] in RevMobAds(RevMobDeviceInfo.o)
___99-[RevMobFullscreen proceedLoadWithSuccessHandler:andLoadFailHandler:onClickHandler:onCloseHandler:]_block_invoke106
in RevMobAds(RevMobFullscreen.o) "_OBJC_CLASS_$_AVCaptureDevice",
referenced from:
objc-class-ref in RevMobAds(RevMobDeviceInfo.o) "_OBJC_CLASS_$_AVURLAsset", referenced from:
objc-class-ref in RevMobAds(RevMobFullscreen.o) "_OBJC_CLASS_$_CLBeaconRegion", referenced from:
objc-class-ref in RevMobAds(RevMobBeaconManager.o) "_OBJC_CLASS_$_CLLocationManager", referenced from:
objc-class-ref in RevMobAds(RevMobDeviceInfo.o)
objc-class-ref in RevMobAds(RevMobBeaconManager.o) "_kCLDistanceFilterNone", referenced from:
-[RevMobDeviceInfo getUserLocation] in RevMobAds(RevMobDeviceInfo.o) "_kCLLocationAccuracyBest",
referenced from:
-[RevMobDeviceInfo getUserLocation] in RevMobAds(RevMobDeviceInfo.o) ld: symbol(s) not found for architecture
x86_64 clang: error: linker command failed with exit code 1 (use -v
to see invocation)任何帮助都将不胜感激。我不会再和视频广告混在一起了,我只想让我的项目回到原样,没有错误!谢谢大家!
发布于 2015-06-14 23:35:08
我之前也遇到过同样的问题,尝试将AVFoundation和CoreLocation框架添加到项目中。
发布于 2016-07-16 23:06:01
如果您将CoreLocation添加到应用程序中,但是复制它而不是执行相对框架链接,也会发生这种情况.因此,请检查以确保您没有错误地将CoreLocation.framework复制到您的应用程序中。
https://stackoverflow.com/questions/30448724
复制相似问题