我想在即将推出的应用程序中使用Flurry广告.我已经安装了分析软件包,并且喜欢跟踪用户和事件是多么容易.
但是,我在使用新的4.0.1 SDK实现广告时出错,我找不到答案.每次我尝试构建我的Xcode 4.2项目时,都会收到以下错误消息:
Undefined symbols for architecture armv7:
"_MPMoviePlayerLoadStateDidChangeNotification", referenced from:
-[FlurryVideoPlayer playVideo:view:ad:] in libFlurryAds.a(FlurryVideoPlayer.o)
-[FlurryVideoPlayer moviePlayerLoadStateChanged:] in libFlurryAds.a(FlurryVideoPlayer.o)
"_MPMoviePlayerPlaybackStateDidChangeNotification", referenced from:
-[FlurryVideoPlayer playVideo:view:ad:] in libFlurryAds.a(FlurryVideoPlayer.o)
"_MPMoviePlayerDidEnterFullscreenNotification", referenced from:
-[FlurryVideoPlayer init] in libFlurryAds.a(FlurryVideoPlayer.o)
"_MPMoviePlayerPlaybackDidFinishNotification", referenced from:
-[FlurryVideoPlayer playVideo:view:ad:] in libFlurryAds.a(FlurryVideoPlayer.o)
-[FlurryVideoPlayer moviePreloadDidFinish:] in libFlurryAds.a(FlurryVideoPlayer.o)
-[FlurryVideoPlayer stopMovie] in libFlurryAds.a(FlurryVideoPlayer.o)
"_OBJC_CLASS_$_MPMoviePlayerController", referenced from:
objc-class-ref in libFlurryAds.a(FlurryVideoPlayer.o)
"_MPMoviePlayerWillEnterFullscreenNotification", referenced from:
-[FlurryVideoPlayer init] in libFlurryAds.a(FlurryVideoPlayer.o)
"_MPMoviePlayerContentPreloadDidFinishNotification", referenced from:
-[FlurryVideoPlayer playVideo:view:ad:] in libFlurryAds.a(FlurryVideoPlayer.o)
-[FlurryVideoPlayer moviePreloadDidFinish:] in libFlurryAds.a(FlurryVideoPlayer.o)
ld: symbol(s) not found for architecture armv7 …Run Code Online (Sandbox Code Playgroud) 这是我的代码:
-(void) captureOutput:(AVCaptureOutput*)captureOutput didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer fromConnection:(AVCaptureConnection*)connection
{
CVImageBufferRef imageBuffer = CMSampleBufferGetImageBuffer( sampleBuffer );
CGSize imageSize = CVImageBufferGetEncodedSize( imageBuffer );
// also in the 'mediaSpecific' dict of the sampleBuffer
NSLog( @"frame captured at %.fx%.f", imageSize.width, imageSize.height );
}
Run Code Online (Sandbox Code Playgroud)
(这与问题无关,但这是一个功能AVCaptureVideoDataOutputSampleBufferDelegate)
无论如何,问题是CMSampleBufferGetImageBuffer CVImageBufferGetEncodedSize无法识别.我收到了错误:
Undefined symbols for architecture i386:
"_CMSampleBufferGetImageBuffer", referenced from:
Run Code Online (Sandbox Code Playgroud)
这是一个标准错误:架构armv7的未定义符号
但是解决方案对我不起作用: - 我正确地将框架添加到Link Binary With Libraries.- 我导入了<CoreMedia/CMSampleBuffer.h>,其中包含.h中的这些类.
那么问题是什么?
归档时(发布时)我收到错误
ld: entry point (_main) undefined. for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ld: entry point (_main) undefined. for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Run Code Online (Sandbox Code Playgroud)
任何帮助将不胜感激.
我正在尝试在 Xcode 12.5 上构建 IOS 项目。连接真实设备或尝试使用模拟器构建时没有问题。但是当选择任何 IOS 设备时我收到此错误。选择任何 IOS 设备来存档我的项目,但我在存档时收到错误消息。我已经更改了“构建活动拱门”。“仅”和“排除架构”设置多次,但问题仍未解决。
请帮我解决这个问题..
所以我正在使用3dar SDK,构建一个实现sdk和生成的SM3Dar.h头的独立应用程序没有问题.但是现在我正在尝试使用相同的sdk作为更大项目的一部分,它似乎没有正常运行.看起来它知道头文件在那里但是没有与那个和库正确通信.我正试图在iPhone 5上运行它,我有最新的XCode.
但我收到这些错误
Undefined symbols for architecture armv7s:
"**___cxa_pure_virtual", referenced from**:
vtable for Comparable in lib3DAR_v23_2012_12_06_DistributionPatch_2013_05_18.a(FloatObject.o)
"**vtable for __cxxabiv1::__si_class_type_info", referenced from:**
typeinfo for ComboVertex in lib3DAR_v23_2012_12_06_DistributionPatch_2013_05_18.a(FloatObject.o)
typeinfo for ObjDB in lib3DAR_v23_2012_12_06_DistributionPatch_2013_05_18.a(ObjDB.o)
NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
**"operator new[](unsigned long)", referenced from:**
Array<FloatPolygon>::Array(int, int) in lib3DAR_v23_2012_12_06_DistributionPatch_2013_05_18.a(Geometry.o)
Array<FloatVertex>::Array(int, int) in lib3DAR_v23_2012_12_06_DistributionPatch_2013_05_18.a(Geometry.o)
Array<CString>::Array(int, int) in lib3DAR_v23_2012_12_06_DistributionPatch_2013_05_18.a(ObjFile.o)
Array<Vector3>::resize(int) in lib3DAR_v23_2012_12_06_DistributionPatch_2013_05_18.a(FloatObject.o)
Array<Vector3>::Array(int, int) in lib3DAR_v23_2012_12_06_DistributionPatch_2013_05_18.a(FloatObject.o)
Array<unsigned char>::resize(int) in lib3DAR_v23_2012_12_06_DistributionPatch_2013_05_18.a(FloatObject.o)
Array<unsigned char>::Array(int, int) in lib3DAR_v23_2012_12_06_DistributionPatch_2013_05_18.a(FloatObject.o) …Run Code Online (Sandbox Code Playgroud) 我将LinkedInIOS登录演示与我当前的应用程序集成在一起:https: //github.com/jeyben/IOSLinkedInAPI
还添加支持类"AFNetworking".
如下所述,它给了我一个错误:
Undefined symbols for architecture armv7:
"_kUTTagClassMIMEType", referenced from:
_AFContentTypeForPathExtension in AFURLRequestSerialization.o
"_kUTTagClassFilenameExtension", referenced from:
_AFContentTypeForPathExtension in AFURLRequestSerialization.o
"_UTTypeCreatePreferredIdentifierForTag", referenced from:
_AFContentTypeForPathExtension in AFURLRequestSerialization.o
"_UTTypeCopyPreferredTagWithClass", referenced from:
_AFContentTypeForPathExtension in AFURLRequestSerialization.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Run Code Online (Sandbox Code Playgroud)
请建议我任何有关它的解决方案.我的部署目标是5.0.
我需要了解这意味着什么以及我将来如何解决它.
我一直在关注本指南,并严格遵循,
我已经从PayPal SDK将以下文件添加到我的解决方案中
![PayPal SDK] [1]
..我的解决方案中的文件图像,不允许发布图像,我没有超过10分
我已将PayPal.h和PayPalAdvancedPayment.h导入我的一个类中,paypal提供的示例代码位于该指南的第30页.
我添加它确保没有明显的错误,然后构建解决方案.我的解决方案一直在构建和运行,直到我导入这两个文件.
PayPal.h和PayPalAdvancedPayment.h
![XCode构建错误] [2]
..是XCode中调试错误的图像
完整的调试消息转储如下.
Undefined symbols for architecture armv7:
"_SecPolicyCreateBasicX509", referenced from:
+[Encryption encryptWithPublicKey:] in libPayPalMPL.a(Encryption.o)
"_SecTrustCreateWithCertificates", referenced from:
+[Encryption encryptWithPublicKey:] in libPayPalMPL.a(Encryption.o)
"_inflateEnd", referenced from:
-[GZipper obfm_initWithGzippedData:] in libPayPalMPL.a(GZipper.o)
+[GZipper obfm_gzipInflate:] in libPayPalMPL.a(GZipper.o)
-[GZipper obfm_zlibInflate] in libPayPalMPL.a(GZipper.o)
"_deflateInit_", referenced from:
-[GZipper obfm_zlibDeflate] in libPayPalMPL.a(GZipper.o)
"_inflate", referenced from:
-[GZipper obfm_initWithGzippedData:] in libPayPalMPL.a(GZipper.o)
+[GZipper obfm_gzipInflate:] in libPayPalMPL.a(GZipper.o)
-[GZipper obfm_zlibInflate] in libPayPalMPL.a(GZipper.o)
"_deflateEnd", referenced from:
-[GZipper obfm_zlibDeflate] in libPayPalMPL.a(GZipper.o)
+[GZipper …Run Code Online (Sandbox Code Playgroud)