jch
jch

Reputation: 183

Getting "apple mach-o linker id error undefined symbols for architecture i386" when implement a Library in iOS5

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.

Upvotes: 3

Views: 1844

Answers (1)

jch
jch

Reputation: 183

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

Upvotes: 12

Related Questions