Professional Web Applications Themes

Is there a way round this Xcode bug? - Mac Programming

I've just upgraded my iMac to Panther and installed it (twice) on an iBook (erasing the destination both times on the iBook) and the O'Reilly Hello World example will not run using Xcode. If I do a build one way it seems to work, but won't run. If I build it another way it says Build Failed (1 error). Exactly the same tutorial worked fine when I tried it using Project Builder on 10.2.8. Am I just stuffed or is there something I can do to make my start into coding on X?? Any help appreciated. I have seen this ...

  1. #1

    Default Is there a way round this Xcode bug?

    I've just upgraded my iMac to Panther and installed it (twice) on an
    iBook (erasing the destination both times on the iBook) and the
    O'Reilly Hello World example will not run using Xcode. If I do a build
    one way it seems to work, but won't run. If I build it another way it
    says Build Failed (1 error).

    Exactly the same tutorial worked fine when I tried it using Project
    Builder on 10.2.8. Am I just stuffed or is there something I can do to
    make my start into coding on X?? Any help appreciated.

    I have seen this sort of issue discussed but I was not aware if anyone
    had provided a resolution.
    Stephen Guest

  2. #2

    Default Re: Is there a way round this Xcode bug?

    You know, it's a little weird to ask for help with a bug without
    actually describing the bug....

    In article <google.com>,
    co.uk (Stephen Watson) wrote:
     

    What are the "ways" you're building and what's the error you're getting.

    G
    Gregory Guest

  3. #3

    Default Re: Is there a way round this Xcode bug?

    In article <attbi.com>,
    Gregory Weston <com> wrote:
     

    Sadly, this is becoming all too common. It's merely one step removed
    from the developers who describe a bug but won't post the code that
    contains it. Why those people post expecting anyone can help them is
    beyond me.
    Doc Guest

  4. #4

    Default Re: Is there a way round this Xcode bug?

    Doc O'Leary <com> wrote:
     
    >
    > Sadly, this is becoming all too common. It's merely one step removed
    > from the developers who describe a bug but won't post the code that
    > contains it. Why those people post expecting anyone can help them is
    > beyond me.[/ref]

    I just assumed that the OP didn't actually want help. If he wanted help
    we would have provided the necessary info. He just wanted to whine. This
    is true of most posts on Usenet. :) m.


    --
    matt neuburg, phd = com, http://www.tidbits.com/matt/
    Read TidBITS! It's free and smart. http://www.tidbits.com
    matt Guest

  5. #5

    Default Re: Is there a way round this Xcode bug?

    matt neuburg <com> wrote: 
     
    >>
    >> Sadly, this is becoming all too common. It's merely one step removed
    >> from the developers who describe a bug but won't post the code that
    >> contains it. Why those people post expecting anyone can help them is
    >> beyond me.[/ref][/ref]
     

    That's fine on Usenet, I'm happy to ignore. I'm a little more torn when users of my
    software do the same thing. Of course, it is too much to expect everyone that submits a bug
    report read that "How to ask questions" paper, but gosh, it'd be nice! When a potentially
    paying customer submits one of those "It crashed, what should I do?" reports, it is a real
    exercise in restraint for me to ask for more info.

    I assume I'm not alone in this frustration?

    --
    *--------------------------------------------------------*
    | ^Nothing is foolproof to a sufficiently talented fool^ |
    | Heath Raftery, HRSoftWorks _\|/_ |
    *______________________________________m_('.')_m__ _______*
    Heath Guest

  6. #6

    Default Re: Is there a way round this Xcode bug?

    com (matt neuburg) wrote in message news:<1g5qzmt.1bfu2uxpa3epsN%com>... 
    > >
    > > Sadly, this is becoming all too common. It's merely one step removed
    > > from the developers who describe a bug but won't post the code that
    > > contains it. Why those people post expecting anyone can help them is
    > > beyond me.[/ref]
    >
    > I just assumed that the OP didn't actually want help. If he wanted help
    > we would have provided the necessary info. He just wanted to whine. This
    > is true of most posts on Usenet. :) m.[/ref]

    If this project was moved and converted from Project builder that
    would be the problem. Either start a new project from scratch in
    Xcode (and then move the old files in) or click on the target and Get
    Info. In the Rules window make sure you change it to build with
    gcc3.3. I think that makes it work.

    --jim
    Jim Guest

  7. #7

    Default Re: Is there a way round this Xcode bug?

    In article <br8h7j$4db$newcastle.edu.au>,
    Heath Raftery <com> wrote:
     

    Never assume. Well, except in this case.

    --
    Tom "Tom" Harrington
    Macaroni, Automated System Maintenance for Mac OS X.
    Version 1.4: Best cleanup yet, gets files other tools miss.
    See http://www.atomicbird.com/
    Tom Guest

  8. #8

    Default Re: Is there a way round this Xcode bug?

    Wow! I didn't expect a simple and honest enquiry to generate such
    negative responses. I'm certainly not whining - what made you think
    that? Did I write in a whiney way Mr Neuburg?

    I was not at machine for the original post and I'm not now, so please
    forgive any not 100% accurate steps. If anything is still unclear I'm
    happy to post only when I get back to my Mac.

    Anyway, I will try to explain more clearly:

    1 Start Xcode
    2 Choose new project
    3 Choose Foundation Tool
    4 Name it Hello World
    5 Click OK, or Save
    6 I am now faced with a pane containing Targets, Sources, Executables
    etc.
    7 Click Build and Run on the toolbar. It says at the top of the window
    pane "Build succeeded"
    8 But, nothing happens
    9 I then clicked on either the source file or the target (sorry I'm
    vague here). There
    was the Ruild and Run icon again on the toobar. I clicked build, and
    at the top of the window
    got "Build failed (1 error). I've looked in the log but it just
    repeats that there was
    an error. Same with the errors item in the left hand pane - no info.
    10 In either case (succeed or fail) "Run Executable" is greyed out in
    the Debug menu.
    11 That is the problem.

    When I had previously tried this with Project Builder in Jaguar, I
    followed exactly the same steps 1 to 7, except that in this case a new
    window appeared with the output "Hello world" in it. I never received
    any build errors at all and all went as the book suggested. I had
    noticed other threads here saying
    there there were all kinds of build problems they'd experienced with
    Xcode which had not occurred with PB and I had hoped that there might
    be a known way round it, though I had not seen one.

    I am a professional developer myself, in Windows sadly, and this is my
    first attempt at using Mac development. I do apologise for not
    explaining the exact steps with my first post, but I had hoped that
    maybe someone who had the O'Reilly Cocoa book would have gone through
    the same Hello world example. The book is a joint venture with Apple
    and I assumed many would have it and have tried the examples and would
    know what I was trying to do and I'm sorry for making that assumption.

    Thanks in advance for any help.
    Stephen Guest

  9. #9

    Default Re: Is there a way round this Xcode bug?

    Stephen Watson <co.uk> wrote:
     

    It's the space in the name. Name it HelloWorld. m.


    --
    matt neuburg, phd = com, http://www.tidbits.com/matt/
    AppleScript: The Definitive Guide
    http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt
    Read TidBITS! It's free and smart. http://www.tidbits.com
    matt Guest

  10. #10

    Default Re: Is there a way round this Xcode bug?

    In article <google.com>,
    co.uk (Stephen Watson) wrote:
     

    Okay up to here.

     

    Now we diverge. I've got a new window on my screen with the title "Run -
    Hello World - Hello World" which has time-stamped output (as I'd expect
    from the NSLog call that almost certainly was used) and then a message
    that the app exited without error. The project window's status line
    reads "Hello World exited normally."
     


    I get "Build succeeded." And I don't think I've ever seen a "Build
    failed" where I couldn't find description(s) of the error(s).

     

    Actually, I've found a lot of people aren't especially fond of that
    book. More to the point, though, your original message really didn't
    contain enough information for anyone to help you. Since you are a
    professional developer, I would hope you'd understand the frustration
    such a post evokes - especially when it comes from a developer.
    Gregory Guest

  11. #11

    Default Handling support (Re: Is there a way round this Xcode bug?)

    In article <br8h7j$4db$newcastle.edu.au>,
    Heath Raftery <com> wrote:
     

    Probably a safe assumption. This gets into the more general issue of
    support for a program. Just having a support email is no longer good
    for me because it generates far more spam than actual people asking for
    help. At this point, it probably makes a good deal of sense to only
    handle support via some structured form on a web page.
    Doc Guest

  12. #12

    Default Re: Is there a way round this Xcode bug?

    In article <1g5shui.q91uz4p87yp0N%com>,
    com (matt neuburg) wrote:
     
    >
    > It's the space in the name. Name it HelloWorld. m.[/ref]

    The space didn't cause a problem for me when I followed his
    instructions. The whole process worked exactly as expected.
    Gregory Guest

  13. #13

    Default Re: Is there a way round this Xcode bug?

    Thanks for the thoughts. I removed the space in the project name, but
    it hasn't made any difference:

    I've now got a screen shot for the HelloWorld.xcode project (40K)
    showing:
    1 of 5 selected - Build failed (1 error) just above "Groups & files"

    I've clicked the "Errors and Warnings" disclosure triangle in the side
    panel, but it does not open though the arrow points down.

    My right hand pane contains:

    Foundation.framework
    HelloWorld (folder)
    HellowWorld.1
    HelloWorld_Prefix.pch
    main.m (this has a tick under the 'hammer' column)

    All but HelloWorld (folder) have a ticked checkbox in the rightmost
    (circle icon) column.

    -- AHA -- You gave me a clue Matt. The name of the project is maybe
    part of it, but my directory in which my projects resided was called
    "Xcode projects". Now that it's "XcodeProjects" it all builds fine and
    comes up with a new window (Run - HelloWorld - HelloWorld) containing:

    2003-12-11 23:51:09.806 HelloWorld[1589] Hello, World!

    HelloWorld has exited with status 0.

    which is what I used to see in Project Builder - but I probably didn't
    have a space in that folder name either...

    It is amazing that here were are in 2003 and Apple are making
    elemental mistakes that Microsoft made in Windows 95! Ah well, plus ca
    change...

    Thanks for all your suggestions - hopefully all will now be well.
    Stephen Guest

  14. #14

    Default Re: Is there a way round this Xcode bug?

    In article <google.com>,
    co.uk (Stephen Watson) wrote:
     

    Don't worry, Matt's always cranky when he posts to Usenet :-)

    meeroh

    --
    If this message helped you, consider buying an item
    from my wish list: <http://web.meeroh.org/wishlist>

    Miro Guest

  15. #15

    Default Re: Is there a way round this Xcode bug?

    In article <google.com>,
    co.uk (Stephen Watson) wrote:
     

    Apple seems to like abusing its developers. Their user programs are
    great. Xcode is a buggy pile.... Oh well.
    Michael Guest

  16. #16

    Default Re: Is there a way round this Xcode bug?

    Michael Ash <com> wrote:
     
    >
    > Apple seems to like abusing its developers. Their user programs are
    > great. Xcode is a buggy pile.... Oh well.[/ref]

    So.... are there any advantages with Xcode (compared to PB)?

    Per
    Per Guest

  17. #17

    Default Re: Is there a way round this Xcode bug?

    In article <1g5urfv.1wcpu6113zq8fuN%com>,
    com (Per Bull Holmen) wrote:
     
    > >
    > > Apple seems to like abusing its developers. Their user programs are
    > > great. Xcode is a buggy pile.... Oh well.[/ref]
    >
    > So.... are there any advantages with Xcode (compared to PB)?[/ref]

    Oh sure. Don't get me wrong, I really like Xcode when it's not being a
    buggy pile. Xcode is organized better (IMO), its doentation viewer is
    nicer (uses WebKit), the debugger integrates a lot better with gdb,
    ZeroLink is pretty cool, and at least a few times Fix & Continue has cut
    down the time to fix a bug by a factor of ten. And PB was by no means
    free of bugs, it randomly crashed at a good clip, it's just that Xcode
    is even worse. It doesn't crash that often, but it often gets into
    situations where you have to restart the entire program (and usually
    perform a clean build of the project) to get back to where you were.
    Michael Guest

  18. #18

    Default Re: Is there a way round this Xcode bug?

    In article <mail-714251.10013512122003localhost>,
    Michael Ash <com> wrote:
     
    >
    > Apple seems to like abusing its developers. Their user programs are
    > great. Xcode is a buggy pile.... Oh well.[/ref]

    It's a 1.0. I'm not a big fan of any .0 from Apple, no matter what the
    target audience is. Additionally, I liked PB a lot and I'm still trying
    to get used to Xcode.
    Gregory Guest

  19. #19

    Default Re: Is there a way round this Xcode bug?

    > Michael Ash <com> wrote: 
    I think the main one is that Apple supports Xcode and PB is no longer
    available from Panther onward. That's my understanding anyway. But as
    I said, I'm rather new to all of this.
    Stephen Guest

Similar Threads

  1. #24876 [NEW]: Round does not round properly
    By jeff at tmtrading dot com in forum PHP Development
    Replies: 0
    Last Post: July 30th, 11:57 PM
  2. #24828 [Asn->Csd]: round() function doesn't round !
    By edink@php.net in forum PHP Development
    Replies: 0
    Last Post: July 28th, 10:08 PM
  3. #24828 [Opn->Asn]: round() function doesn't round !
    By iliaa@php.net in forum PHP Development
    Replies: 0
    Last Post: July 27th, 06:25 PM
  4. #24828 [NEW]: round() function doesn't round !
    By christophe dot bidaux at netcourrier dot com in forum PHP Development
    Replies: 0
    Last Post: July 27th, 11:34 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139