在iOS5中实现库时,获取“apple ch-o链接器id错误,未定义i386的符号”

时间:2022-10-14 16:22:46

I'm having troubles to implement the PayPal Library in XCode 4. I get this error when I try to build the project:

我有麻烦在XCode 4中实现PayPal库。当我尝试构建项目时,我得到了这个错误:

Undefined symbols for architecture i386:
"_xmlParseMemory", referenced from:
-[AdaptivePaymentsSOAP11Binding_CancelPreapproval connectionDidFinishLoading:] in libPayPalMPL.a(AdaptivePayments.o)
-[AdaptivePaymentsSOAP11Binding_ConfirmPreapproval connectionDidFinishLoading:] in libPayPalMPL.a(AdaptivePayments.o)
-[AdaptivePaymentsSOAP11Binding_ConvertCurrency connectionDidFinishLoading:] in libPayPalMPL.a(AdaptivePayments.o)
-[AdaptivePaymentsSOAP11Binding_ExecutePayment connectionDidFinishLoading:] in libPayPalMPL.a(AdaptivePayments.o)
-[AdaptivePaymentsSOAP11Binding_GetPaymentOptions connectionDidFinishLoading:] in libPayPalMPL.a(AdaptivePayments.o)
-[AdaptivePaymentsSOAP11Binding_PaymentDetails connectionDidFinishLoading:] in libPayPalMPL.a(AdaptivePayments.o)
-[AdaptivePaymentsSOAP11Binding_Pay connectionDidFinishLoading:] in libPayPalMPL.a(AdaptivePayments.o)
...

架构i386的未定义符号:“_xmlParseMemory”,引用自:-[AdaptivePaymentsSOAP11Binding_ConfirmPreapproval connectionDidFinishLoading:]在libPayPalMPL.a(adaptivepaymentations.o)中。-[AdaptivePaymentsSOAP11Binding_GetPaymentOptions connectionDidFinishLoading:]在libPayPalMPL.a(adaptivepaymentations.o)中。

Searching on the web I found that this is a tipical error when passing from XC3 to XC4. Maybe the Library isn't updated. But that file .a that you see there seems to be uneditable.

在web上搜索时,我发现这是一个从XC3传递到XC4的典型错误。也许图书馆没有更新。但是那个文件,你看到的似乎是不可编辑的。

1 个解决方案

#1


12  

Solved. Have to load 3 frameworks: libXML, Security and libz.

解决了。必须加载3个框架:libXML、Security和libz。

#1


12  

Solved. Have to load 3 frameworks: libXML, Security and libz.

解决了。必须加载3个框架:libXML、Security和libz。