问题
I'm having troubles to implement the PayPal Library in XCode 4. I get this error when I try to build the project:
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)
...
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.
回答1:
Solved. Have to load 3 frameworks: libXML, Security and libz.
来源:https://stackoverflow.com/questions/8670162/getting-apple-mach-o-linker-id-error-undefined-symbols-for-architecture-i386-w