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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T03:58:18+00:00 2026-05-30T03:58:18+00:00

I just upgraded to the latest 4.3 Xcode. I have my plist.which is preprocessed

  • 0

I just upgraded to the latest 4.3 Xcode.
I have my plist.which is preprocessed and compared to 4.2 does not seem to work anymore.

I set Info.plist other pre-processor flag -traditional (to be able to skip // considered as a comment).

I set

 #define MYSERVER  http://127.0.0.1:1234/

and in my plist

    <key>myhost</key>
    <string>MYSERVER</string>

When I check in the new Xcode 4.3 I see inside NSDictionary *bundle = [[NSBundle mainBundle] infoDictionary];

 myhost = "http:/ /127.0.0.1:1234/"

I have a quick hack for it.

    NSString *hack = [[[[NSBundle mainBundle] infoDictionary] objectForKey:@"myhost"] stringByReplacingOccurrencesOfString:@" " withString:@""];
    url = [NSURL URLWithString:hack];

This is making my app working again, but I would like to have a clean solution. Any ideas?

  • 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-30T03:58:20+00:00Added an answer on May 30, 2026 at 3:58 am

    This is actually a bug in clang’s preprocessor which is shipped with Xcode 4.3 (clang 3.1) and it affects all preprocessing, not just Info.plists. I’ve filed a bug (LLVM bug 12035, rdar://10883862).

    A workaround for this is to force Xcode 4.3 to use llvm-gcc for Info.plist preprocessing instead of clang. The only way I’ve found so far is to rewrite the “cc” symlink which is used in Info.plist preprocessing phase:

    sudo ln -fs /usr/bin/llvm-gcc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc

    To revert this hack, just rewrite it back to clang:
    sudo ln -fs /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc

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

Sidebar

Related Questions

Just upgraded my xcode to the latest SDK which has the iOS 4.1 SDK.
I just upgraded to the latest Xcode version(3.2.5) and attempted to build and run
I have just upgraded my iOS sdk to the latest version 3.2.5 and I
I just upgraded Xcode to the latest (4.2 (4C199)) and my iPhone to iOS
I just upgraded to Snow Leopard, including installing the new XCode, re-compiled Ruby 1.8
I just upgraded to Xcode 3.2 and am using the Build and Analyze feature
I just upgraded to iPhone SDK 3.2 Beta 4. Since doing so, I have
I upgraded to Xcode 3.2.3 with the latest iPhone SDK version 4 and I
I've just upgraded to the latest git repo for emacs 24 and compiled it
Possible Duplicate: Upgraded to SDK 2.3 - now no emulators have connectivity I just

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.