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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T15:02:32+00:00 2026-05-11T15:02:32+00:00

I’m trying to build for multiple targets in Xcode, to simplify the process of

  • 0

I’m trying to build for multiple targets in Xcode, to simplify the process of creating a ‘lite’ and ‘pro’ version of my application. In theory, this is great and I can pass defines to GCC_PREPROCESSOR_DEFINITIONS for use in my code. However, I’m having problems actually getting it to work due to an error trying to launch the second target in the simulator: Failed to launch simulated application: Unknown error.

Here is the simple process I’m using to create the additional target:

  1. Add #ifdef MYAPP_PRO to source files to modify behavior based on pro/lite version of app (and verify application is working as expected)
  2. Select Project > New Target... from menu, and pick ‘Cocoa Touch Application’ (named MyAppPro’)
  3. Edit new target settings; add GCC_PREPROCESSOR_DEFINITIONS user-defined setting and set the value to ‘MYAPP_PRO’ (no quotes)
  4. Set active target to ‘MyAppPro’; build and run.
  5. Failed to launch simulated application: Unknown error.
  6. Copy all settings from Info.plist to MyAppPro-Info.plist and try again
  7. Failed to launch simulated application: Unknown error.

The build completes just fine, but I’m unable to run in simulator.

Editing the project.pbxproj in the .xcodeproj directory, I notice there are some key differences between the two target definitions’ build settings. I tried manually editing the file but must have done something wrong because I couldn’t get it to load in Xcode afterwards.

Original target’s ‘Debug’ build settings:

        buildSettings = {             ALWAYS_SEARCH_USER_PATHS = YES;             ARCHS = '$(ARCHS_STANDARD_32_BIT)';             'CODE_SIGN_IDENTITY[sdk=iphoneos*]' = 'iPhone Developer';             GCC_C_LANGUAGE_STANDARD = c99;             GCC_WARN_ABOUT_RETURN_TYPE = YES;             GCC_WARN_UNUSED_VARIABLE = YES;             ONLY_ACTIVE_ARCH = YES;             PREBINDING = NO;             SDKROOT = iphoneos2.2.1;         }; 

Thew new MyAppPro target’s ‘Debug’ build settings:

        buildSettings = {             ALWAYS_SEARCH_USER_PATHS = NO;             CODE_SIGN_IDENTITY = 'iPhone Developer';             COPY_PHASE_STRIP = NO;             GCC_DYNAMIC_NO_PIC = NO;             GCC_OPTIMIZATION_LEVEL = 0;             GCC_PRECOMPILE_PREFIX_HEADER = YES;             GCC_PREFIX_HEADER = '$(SYSTEM_LIBRARY_DIR)/Frameworks/UIKit.framework/Headers/UIKit.h';             INFOPLIST_FILE = 'MyAppPro-Info.plist';             INSTALL_PATH = '$(HOME)/Applications';             OTHER_LDFLAGS = (                 '-framework',                 Foundation,                 '-framework',                 UIKit,             );             PREBINDING = NO;             PRODUCT_NAME = MyAppPro;             SDKROOT = iphoneos2.2.1;         }; 
  • 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. 2026-05-11T15:02:32+00:00Added an answer on May 11, 2026 at 3:02 pm

    You didn’t say whether you actually ever added source files to the target. A new target (unlike a new project) has no source file templates; you have to add them yourself. So the Simulator might be telling you ‘you built successfully, but there’s nothing to run.’

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

Sidebar

Ask A Question

Stats

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

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

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

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

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer stopUpdatingLocation give the location manager the option to shutdown the… May 12, 2026 at 7:37 pm
  • Editorial Team
    Editorial Team added an answer Yes. There is a known leaks on 3.0's MKMapViews. The… May 12, 2026 at 7:37 pm
  • Editorial Team
    Editorial Team added an answer The REFGUID is constant ptr to a constant guid (ie… May 12, 2026 at 7:37 pm

Related Questions

I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
In order to apply a triggered animation to all ToolTip s in my app,
I have a French site that I want to parse, but am running into
I have text I am displaying in SIlverlight that is coming from a CMS

Trending Tags

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

Top Members

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.