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 939725
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T21:50:13+00:00 2026-05-15T21:50:13+00:00

I am using this OAuth lib: http://github.com/jdg/oauthconsumer When adding it to my project, it

  • 0

I am using this OAuth lib: http://github.com/jdg/oauthconsumer

When adding it to my project, it causes over 2000 build errors. These errors are all under the App_Preficx.pch file in the Build Results window.

If you actually click on the errors, they are actually contained in every Foundation Header. I won’t list them all, but here are a few examples:

/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:236:0 /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:236: error: expected identifier or '(' before '@' token

/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:238:0 /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:238: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token

/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:8:0 /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:8: error: expected identifier or '(' before '@' token

You can see that Xcode can’t seem to link against Foundation or at least can’t import headers.

If I remove the OAuth from Xcode, all is well again and compiles.

I can add search paths to my hearts content, but to no avail.

I have added all of the frameworks, libs, and search paths that are required in the docs.

Of all the 2641 errors, none give me any leads to the true issue. There also seem to be no warnings of consequence.

Does anyone have an idea of how I can track down the cause of the problem?

  • 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-15T21:50:13+00:00Added an answer on May 15, 2026 at 9:50 pm

    Ok found the silly answer.

    in the prefix head you may see this:

    #ifdef __OBJC__
        #import <Foundation/Foundation.h>
        #import <UIKit/UIKit.h>
    
    #endif
    

    If you add some globals or categories or macros you may be tempted to do this:

        #ifdef __OBJC__
            #import <Foundation/Foundation.h>
            #import <UIKit/UIKit.h>
    
        #endif
    
        #import "MacroUtilities.h"
        #import "Global.h"
    

    But that is a bad idea. Reason being is that if you reference Obj-c objects in any of your “global” files, you may be prepending objective-c code to any included c source files. Thus causing the crazy errors.

    Instead, keep it real:

        #ifdef __OBJC__
            #import <Foundation/Foundation.h>
            #import <UIKit/UIKit.h>
            #import "MacroUtilities.h"
            #import "Global.h"
        #endif
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 510k
  • Answers 510k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer The SGI Standard Template Library (STL) documentation explains all of… May 16, 2026 at 4:53 pm
  • Editorial Team
    Editorial Team added an answer I had this problem. What a pain. To properly destroy… May 16, 2026 at 4:53 pm
  • Editorial Team
    Editorial Team added an answer This line right here: window.setTimeout(callbackFunction(aAlbums), 5000); You're calling the function… May 16, 2026 at 4:53 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

Hi i am using this code to get this path : http://192.168.1.5:83/staging/eleave/application/view/leave_approval.php var url
I'm trying to get twitter update_profile_image to work using OAuth. I was using curl
I have just succeeded in creating oAuth authentication for my twitter application using PHP.
Hello im tryin to use Twitter with OAuth but i receive this exception Authorization
Before I begin, my reason for not using OAuth is I believe it is
Using This code: I am tring to fill the page with the data and
I'm doing Oauth, and Linkedin needs me to send a header request instead of
We have been using Perl's Net:Twitter CPAN module (version 3.12) and basic authentication (not
I have a web application that is integrating with Twitter's OAuth API. I registered
I've been battling with OAuth and Twitter for 2 weeks now trying to implement

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.