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

  • SEARCH
  • Home
  • 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 8588595
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T22:50:33+00:00 2026-06-11T22:50:33+00:00

I have an issue with a project that includes another project. The second project

  • 0

I have an issue with a project that includes another project. The second project is an SDK which is required for the main project. At the moment, I have the SDK included in the main project as a static library. Both the SDK and the main project include the FBConnect and Unofficial Twitter SDK frameworks. I believe my problems are a result of these frameworks being included in both projects, but I have been unable to find a way to have them coexist without errors.

When the project builds for debug, it will not build for archive, and vice versa. I am able to resolve the issues each time by performing the same steps, but I would like to find a way to resolve it with no steps required between debug and archive builds.

When the project builds for debug without any errors, I get the following when trying an archive build:

Undefined symbols for architecture armv7:
  "_OBJC_CLASS_$_SBJSON", referenced from:
      objc-class-ref in FBRequest.o
      objc-class-ref in libSDK.a(ApiTvDiscussView.o)
      objc-class-ref in libSDK.a(ApiWebView.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I then add the implementation files for the SBJSON library used by the FBConnect framework into the Compile Sources in Build Phases of the target, as per the linked screenshot: Screenshot

This then produces a different issue, as below:

    duplicate symbol _OBJC_METACLASS_$_OAHMAC_SHA1SignatureProvider in:
        /Users/Alan/Library/Developer/Xcode/DerivedData/App-gpvfsbaxxbvhsddtcbgkggquyltl/Build/Intermediates/ArchiveIntermediates/App/IntermediateBuildFilesPath/App.build/Release-iphoneos/App.build/Objects-normal/armv7/OAHMAC_SHA1SignatureProvider.o
./libSDK.a(OAHMAC_SHA1SignatureProvider.o)

    .
    .
    .
    .
    .

    duplicate symbol _OBJC_CLASS_$_TwitterDialog in:
        /Users/Alan/Library/Developer/Xcode/DerivedData/App-gpvfsbaxxbvhsddtcbgkggquyltl/Build/Intermediates/ArchiveIntermediates/App/IntermediateBuildFilesPath/App.build/Release-iphoneos/App.build/Objects-normal/armv7/TwitterDialog.o
        ./libSDK.a(TwitterDialog.o)
    duplicate symbol _OBJC_METACLASS_$_TwitterDialog in:
        /Users/Alan/Library/Developer/Xcode/DerivedData/App-gpvfsbaxxbvhsddtcbgkggquyltl/Build/Intermediates/ArchiveIntermediates/App/IntermediateBuildFilesPath/App.build/Release-iphoneos/App.build/Objects-normal/armv7/TwitterDialog.o
        ./libSDK.a(TwitterDialog.o)
    ld: 43 duplicate symbols for architecture armv7
    clang: error: linker command failed with exit code 1 (use -v to see invocation)

Removing the implementation files for the OAUTH library used by the Unofficial Twitter SDK framework from the Compile Sources in Build Phases of the target removes these errors and the project archive build is successful.

When I attempt to build the project for debug, I get the opposite of these errors, firstly the OAUTH library symbols are undefined. Adding them to compile sources resolves the issue, then the SBJSON symbols are duplicated. Removing them from compile sources allows the debug build to complete successfully.

Does anyone know of a way to have these coexist in harmony so that I can do both debug and archive builds of the project without this file juggling every time?

  • 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-06-11T22:50:34+00:00Added an answer on June 11, 2026 at 10:50 pm

    Both the Twitter and Facebook libraries are linking against the same SBJSON framework. Build both of them from code instead of using the static library. While doing this, remove the SBJSON reference from one of the SDK.

    This is another reason why I hate building against static libraries. The problem will be un-solveable if you don’t have the source code and the library maker didn’t prefix his classes/methods.

    Alternatively, you can use the newly released Facebook SDK, version 3.1, where they finally prefixed SBJSON to FBSBJSON.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My problem/issue We are working on an opensource project which we have hosted on
I have a website project that is consuming user controls from another shared project.
I have a project with an Article scaffold - which includes a paperclip file
I have a project build that needs to include files from another svn location
So I have been playing around with a home project that includes a lot
I have yet another problem regarding GifImage.pas that is included with Delphi XE. The
I have been handed this project that has a large number of issues with
Strange issue I am having with my MVC3 project. I have followed a simple
im having a little issue here. I have MediaElement.js set on my project. It
I have some issues in setting the classpath for the a project for which

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.