2009-11-25 110 views
1

我正在使用Ben Gottlieb的Twitter+OAuth代码。Twitter + OAuth在iPhone OS 2.x上崩溃

适用于我的3.1.2 iPhone,但在2.2.1 iPhone上崩溃。我在EstimateBas64EncodedDataSize调用中遇到EXC_BAD_ACCESS错误。这是我在调试器中看到的:

#0 0x2fe1e724 in __dyld_pthread_getspecific 
#1 0x2fe1eddc in __dyld___gthread_getspecific 
#2 0x2fe1eec8 in __dyld__Unwind_SjLj_Register 
#3 0x2fe07b14 in __dyld__ZN4dyld14bindLazySymbolEPK11mach_headerPm 
#4 0x2fe15ebc in __dyld_stub_binding_helper_interface 
#5 0x0003cab8 in EstimateBas64EncodedDataSize at Base64Transcoder.c:106 
#6 0x0003cb04 in Base64EncodeData at Base64Transcoder.c:120 
#7 0x0003e476 in -[OAHMAC_SHA1SignatureProvider signClearText:withSecret:] at OAHMAC_SHA1SignatureProvider.m:50 

我在想什么?一个不适用于2.2.1的库?

回答

2

看起来OAuth库是针对3.0框架构建的。如果您想要定位2.2.1,则需要针对这些框架进行构建。

+0

我已经更新了GitHub代码来提供这个。 – 2009-11-27 02:51:16