phonegap/phonegap-plugins — Issue #295: TwitterPlugin still getting EXC_BAD_ACCESS after changing linking flags
Author: jzellis
Created: 2011-12-22 21:22:53+00:00
State: open

Hello,

I'm trying to integrate the Twitter Plugin into my iOS Phonegap app. I followed the instructions in the readme -- including the bit about replacing the -weak_library with -weak_lSystem in the Linking section of the Build Settings tab. I verified that my app is checking to make sure Twitter is available, and made sure that I had my Twitter account setup in the main Settings app under the iOS Simulator.

The isTwitterAvailable function of the plugin seems to return the expected response, so I think it's getting recognized. But when I try to actually do something, it crashes.

I'm using Sencha Touch to build my UI, and I have a button whose tap function is window.plugins.twitter.composeTweet(); But when I click on the button, the whole app freezes. The debug window in XCode tells me that the function composeTweet triggers this:

Thread 1: Program received signal "EXC_BAD_ACCESS".

I'm not sure what I'm doing wrong, as I'm an HTML/JS/PHP coder and XCode is sort of new territory for me. But I'm fairly certain I followed the Readme.MD instructions to the letter.

I don't know what to paste here or anything if anybody needs anything like a log, but I'd be happy to if somebody tells me what they might need to help diagnose my problem.

I'm running XCode 4.2, PhoneGap 1.2.0.

Thanks!