Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6984857
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:36:14+00:00 2026-05-27T18:36:14+00:00

I am using twitter using Sharekit and for IOS5, I am using its class

  • 0

I am using twitter using Sharekit and for IOS5, I am using its class TWTweetComposeViewControllerClass as,

Class TWTweetComposeViewControllerClass = NSClassFromString(@"TWTweetComposeViewController");

    if (TWTweetComposeViewControllerClass != nil) {
        if([TWTweetComposeViewControllerClass respondsToSelector:@selector(canSendTweet)]) {
            UIViewController *twitterViewController = [[TWTweetComposeViewControllerClass alloc] init];

            [twitterViewController performSelector:@selector(setInitialText:) 
                                        withObject:NSLocalizedString(@"TwitterMessage", @"")];



            [self.navigationController presentModalViewController:twitterViewController animated:YES];
            [twitterViewController release];
        }
    } else {
        [SHK flushOfflineQueue];
        SHKItem *item = [SHKItem text:text];
        //[SHKTwitter shareItem:item];
        SHKActionSheet *actionsheet = [SHKActionSheet actionSheetForItem:item];
        [actionsheet showFromToolbar:self.navigationController.toolbar];
    }

It is working fine with simulator 5.0 but crashes on 4.3 with below error.

dyld: Library not loaded: /System/Library/Frameworks/Twitter.framework/Twitter
      Referenced from: /Users/indianic/Library/Application Support/iPhone Simulator/4.3.2/Applications/241167D0-62E0-4475-85FD-0B8253B4E456/demoFBTW.app/demoFBTW
      Reason: image not found

How do I fix this.
I tried to change the dependency for the framework from Required to Optional but didn’t find for that

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T18:36:14+00:00Added an answer on May 27, 2026 at 6:36 pm

    It looks like you found how to weak link the framework. Assuming you are using Xcode 4.2 and LLVM3, you can also simplify this code a bit and fix a bug you have while you’re at it:

    #include <Twitter/Twitter.h>
    
    // This line is no longer needed:
    // Class TWTweetComposeViewControllerClass = NSClassFromString(@"TWTweetComposeViewController");
    
    
    // this part can now be:
    if ([TWTweetComposeViewController class] != nil) { // no need to look up class by string now
    
        // note previously you were checking if this class responds to 'canSendTweet'
        // but you never called the method to see if you can actually send the tweet
    
        if([TWTweetComposeViewController canSendTweet]) {
    
            // you can type this correctly now...
            TWTweetComposeViewController *twitterViewController = [[TWTweetComposeViewController alloc] init];
    
            // ... and call this method directly
            [twitterViewController setInitialText:NSLocalizedString(@"TwitterMessage", @"")]; 
    
            [self presentModalViewController:twitterViewController animated:YES];
    
            [twitterViewController release];
        }
    }
    ... continue with the shareKit option
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I got the following code and im using twitter bootstrap. <div class=span10> <div class=span2>@Html.Label(lblUsername,
I'm using sharekit in my iphone app to send text to twitter, but i
I was doing FB and Twitter integration of my application using the ShareKit. Which
Iam implementing facebook and twitter using sharekit for an iphone app. How can we
I am creating an app for Facebook and twitter integration using sharekit. That works
I'm using ShareKit to share through FB and twitter. I'm using this code to
I am using ShareKit (www.getsharekit.com) to share my URL's to Twitter and Facebook. I
I'm using Twitter's OAuth API to updates a user's twitter account (twitter status update)
I'm developing a twitter messaging utility using Twitter API (twitterizer). But since I'm within
From few months ago when i was using twitter, i was able to send

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.