Tag: 链接错误

未findi386体系结构的Facebook符号

尝试在xcode 4中编译我的项目时出现以下错误(在xcode 3.x中正常工作) Undefined symbols for architecture i386: "_OBJC_CLASS_$_FBSession", referenced from: objc-class-ref in View1Controls.o "_OBJC_CLASS_$_FBLoginDialog", referenced from: objc-class-ref in View1Controls.o "_OBJC_CLASS_$_FBRequest", referenced from: objc-class-ref in View1Controls.o "_OBJC_CLASS_$_FBStreamDialog", referenced from: objc-class-ref in View1Controls.o ld: symbol(s) not found for architecture i386 collect2: ld returned 1 exit status 任何人都可以解释什么是错的? 我相信我已经正确导入头文件.. 谢谢, 插口

APPLE MACH-O LINKED ERROR添加AFNetworking后

只需在我的项目中添加AFNetworking,在B&R之后,我得到如下错误: Undefined symbols for architecture i386: "_SecCertificateCopyData", referenced from: -[AFURLConnectionOperation connection:willSendRequestForAuthenticationChallenge:] in AFURLConnectionOperation.o "_SecCertificateCreateWithData", referenced from: ___44+[AFURLConnectionOperation pinnedPublicKeys]_block_invoke in AFURLConnectionOperation.o "_SecPolicyCreateBasicX509", referenced from: ___44+[AFURLConnectionOperation pinnedPublicKeys]_block_invoke in AFURLConnectionOperation.o -[AFURLConnectionOperation connection:willSendRequestForAuthenticationChallenge:] in AFURLConnectionOperation.o "_SecTrustCopyPublicKey", referenced from: ___44+[AFURLConnectionOperation pinnedPublicKeys]_block_invoke in AFURLConnectionOperation.o -[AFURLConnectionOperation connection:willSendRequestForAuthenticationChallenge:] in AFURLConnectionOperation.o "_SecTrustCreateWithCertificates", referenced from: ___44+[AFURLConnectionOperation pinnedPublicKeys]_block_invoke in AFURLConnectionOperation.o -[AFURLConnectionOperation connection:willSendRequestForAuthenticationChallenge:] in AFURLConnectionOperation.o "_SecTrustEvaluate", referenced […]

链接器错误,当unit testing:ld:非法的文本重定位到cstring中…从_av_image_check_size在… / libavutil.a(imgutils.o)

在Xcode 4.3.2中,构build一个iPad应用程序(其中包含来自ffmpeg发行版的libavutil.a ,它构build并正确运行,但是当我尝试运行unit testing(Cmd-U)时,出现以下链接器错误: ld:非法将文本重定位到/myPath/libavutil.a(imgutils.o)中的cstring,从/avPath/libavutil.a(imgutils.o)中的_av_image_check_size中,用于体系结构armv7 clang:错误:链接器命令失败,退出代码1(使用-v看到调用) 这是在设备上(我们目前无法在模拟器中运行它,因为我们没有包含所有库的fat二进制文件)。 为什么在运行unit testing时,它会正常构build和正常运行,而不是链接?