Xcode showing Products in red

  • I have an Xcode 4 project that has two targets:

    MyApp Retail
    MyApp App Store

    The real output names of both targets are "MyApp" so to avoid name
    collisions I have set the "Build Products Path" to:

    build/Retail

    And

    build/AppStore

    This works except after a successful build, the .app still appears in the
    Xcode list in red.

    Ideas?
  • At 23:27 -0700 13/5/13, Trygve Inda wrote:
    > This works except after a successful build, the .app still appears in the
    > Xcode list in red.
    >
    > Ideas?

    I'd like to know an answer to this too.  I have an Xcode project in
    which the products always stay red in the list, even though
    everything builds and runs properly, and when the products are
    already up to date, doing a build doesn't rebuild them.  It seems as
    if almost all of Xcode thinks the products are in one place, except
    for the part that displays that list, which thinks they're in another
    and doesn't find them there.  But I haven't found a setting to tweak.

    My file layout is non-default in a different way to Trygve's.  The
    source files are in directories alongside the Xcode project
    directory.  They can't go inside the project directory, because they
    have to be buildable by two other IDEs as well, so all three of them
    are set up to have the source outside the project.

    One of those IDEs is Xcode 3, which doesn't have the problem.

    -- Richard Kennaway
  • On May 14, 2013, at 2:27 AM, Trygve Inda <xcode...> wrote:

    > I have an Xcode 4 project that has two targets:
    >
    > MyApp Retail
    > MyApp App Store
    >
    > The real output names of both targets are "MyApp" so to avoid name
    > collisions I have set the "Build Products Path" to:
    >
    > build/Retail
    >
    > And
    >
    > build/AppStore
    >
    > This works except after a successful build, the .app still appears in the
    > Xcode list in red.
    >
    > Ideas?

    When you select the red  .app in the Project Navigator (I assume in the Products group?), what does the File Inspector show for the Full Path? That might at least show where the disconnect occurs, if there is one. From a quick check, it doesn't look like you can customize the path for that item using the File Inspector itself.
  • Random guess here.  Is the build directory write protected?

    Do you have privs to that directory?

    On May 16, 2013, at 7:04 AM, Michael Babin wrote:

    > On May 14, 2013, at 2:27 AM, Trygve Inda <xcode...> wrote:
    >
    >> I have an Xcode 4 project that has two targets:
    >>
    >> MyApp Retail
    >> MyApp App Store
    >>
    >> The real output names of both targets are "MyApp" so to avoid name
    >> collisions I have set the "Build Products Path" to:
    >>
    >> build/Retail
    >>
    >> And
    >>
    >> build/AppStore
    >>
    >> This works except after a successful build, the .app still appears in the
    >> Xcode list in red.
    >>
    >> Ideas?
    >
    > When you select the red  .app in the Project Navigator (I assume in the Products group?), what does the File Inspector show for the Full Path? That might at least show where the disconnect occurs, if there is one. From a quick check, it doesn't look like you can customize the path for that item using the File Inspector itself.
    >
    >
    > _______________________________________________
    > Do not post admin requests to the list. They will be ignored.
    > Xcode-users mailing list      (<Xcode-users...>)
    > Help/Unsubscribe/Update your Subscription:
    > https://lists.apple.com/mailman/options/xcode-users/<zav...>
    >
    > This email sent to <zav...>
previous month may 2013 next month
MTWTFSS
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    
Go to today