繁体   English   中英

libmms链接错误

[英]libmms linking error

我取消了wunder广播项目,将MMS项目复制到我的工作区中。 如果我尝试使用mms_connect Xcode4给我这个错误:

Ld /Users/Alex/Library/Developer/Xcode/DerivedData/test1-gevnovbiecnctxguaabsznvdybxa/Build/Products/Debug-iphonesimulator/test1.app/test1普通i386 cd / Users / Alex / Source / test1 setenv MACOSX_DEPLOYMENT_TARGET“ /10.6 seten /Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin“

/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-gcc-4.2 -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk -L / Users / Alex /库/开发人员/ Xcode / DerivedData / test1-gevnovbiecnctxguaabsznvdybxa / Build /产品/ Debug-iphonesimulator -F / Users / Alex / Library / Developer / Xcode / DerivedData / test1-gevnovbiecnctxguaabsznvdybxa / Build /产品/文件/ Debug-isimulator Alex /图书馆/开发人员/Xcode/DerivedData/test1-gevnovbiecnctxguaabsznvdybxa/Build/Intermediates/test1.build/Debug-iphonesimulator/test1.build/Objects-normal/i386/test1.LinkFileList -mmacosx-version-min = 10.6 -Xlinker- objc_abi_version -Xlinker 2 -lz.1-框架UIKit-框架Foundation-框架CoreGraphics -o /Users/Alex/Library/Developer/Xcode/DerivedData/test1-gevnovbiecnctxguaabsznvdybxa/Build/Products/Debug-iphonesimulator/test1.app/test1

架构i386的未定义符号:“ _ mms_connect”,引用自:test1AppDelegate.o中的-[test1AppDelegate应用程序:didFinishLaunchingWithOptions:]。ld:找不到架构i386的符号collect2:ld返回1退出状态

有解决的办法吗?

看起来链接器无法链接到libmms,因为它的体系结构错误。 您正在构建的项目似乎是针对iPhone模拟器的。 由于模拟器在您的计算机上运行,​​因此其架构为i386(或x86_64,具体取决于所使用的计算机)。 因此,基本上,您正在使用i386进行编译,但是当链接器尝试链接至libmms时,并未发现libmms已使用相同的体系结构进行了编译。

由于iOS设备使用armv6或armv7体系结构,并且模拟器使用i386,因此在用于实际设备的构建或用于模拟器的构建之间来回切换非常困难,因为所有外部静态库都需要针对这三种体系结构进行构建。

您可能需要使用i386架构重建libmms。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM