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

冷暖自知 提交于 2019-12-19 09:43:47

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!