Professional Web Applications Themes

Build fails with White Space in Project Name - Mac Programming

Hello all. I recently delved into OS X programming and picked up Learning Cocoa with Objective C by O'Reilly. However, I tried the second example (Hello World application with a GUI) and the build fails. The problem comes down to the fact that I called my project "Hello World" vs. "HelloWorld" or "Hello_World"; in short: white space in the project name halts the build process. I tried searching via Google.com, and poking around www.apple.com/Developer and could not find anything about this. Are projects not allowed to have white space? For reference, I am on a 10.2.8 system. Software Update reports ...

  1. #1

    Default Build fails with White Space in Project Name

    Hello all.

    I recently delved into OS X programming and picked up Learning Cocoa
    with Objective C by O'Reilly.

    However, I tried the second example (Hello World application with a GUI)
    and the build fails. The problem comes down to the fact that I called
    my project "Hello World" vs. "HelloWorld" or "Hello_World"; in short:
    white space in the project name halts the build process.

    I tried searching via Google.com, and poking around
    www.apple.com/Developer and could not find anything about this. Are
    projects not allowed to have white space?

    For reference, I am on a 10.2.8 system. Software Update reports no
    available updates for my developer tools.

    Cheers,
    Patrick

    --
    tendim
    remove all capitals from eMail address for replies
    tendim Guest

  2. #2

    Default Re: Build fails with White Space in Project Name

    In article <1g53zl7.3l1anh1l2u7siN%cjb.netSPAM>,
    cjb.netSPAM (tendim) wrote:
     

    I don't know if this will fix your problem, however, Software Update under
    10.2.x does not update developer tools at all. You should check what the latest
    version of 10.2 tools is on developer.apple.com, and you should check what
    version you have by looking in Project Builder's about box.

    hth

    meeroh

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

    Miro Guest

  3. #3

    Default Re: Build fails with White Space in Project Name

    In article <1g53zl7.3l1anh1l2u7siN%cjb.netSPAM>,
    cjb.netSPAM (tendim) wrote:
     

    This is a bug, not a feature. Since PB calls down to various
    command-line tools, things with spaces have to be quoted. When you make
    a new project, it creates a prefix header with the same name as your
    project, but it forgets to quote the name. So either replace the space
    with an underscore in your prefix header's name, and update that name in
    your target settings, or add quotes around the prefix header's name in
    the target settings.

    Or just don't name your projects with spaces. You can still make the
    resulting application name have a space easily enough.
    Michael Guest

  4. #4

    Default Re: Build fails with White Space in Project Name

    Wow, that was a quick reply. :D

    Miro Jurisic <org> wrote: > I don't know if this will fix
    your problem, however, Software Update under > 10.2.x does not update
    developer tools at all. You should check what the latest > version of
    10.2 tools is on developer.apple.com, and you should check what >
    version you have by looking in Project Builder's about box.

    Thanks for the tip. I also checked out the publishers website, and
    there is a user-added errata that says the Developer Tools (2002) (Those
    that shipped with the latest Jaguar) do not work with white space. :I

    Cheers, Patrick

     


    -- tendim remove all capitals from eMail address for replies
    tendim Guest

  5. #5

    Default Re: Build fails with White Space in Project Name

    In article <1g53zl7.3l1anh1l2u7siN%cjb.netSPAM>,
    cjb.netSPAM (tendim) wrote:
     

    Welcome to the year 2003. :(
    Sean Guest

  6. #6

    Default Re: Build fails with White Space in Project Name

    In article <aei.ca>,
    Sean McBride <org> wrote:
     
    >
    > Welcome to the year 2003. :([/ref]

    And Project Builder's interface to gcc barfs if there is a non-ASCII
    character anywhere in the path. I had to take some bullets "" out to
    get it to build.
    David Guest

Similar Threads

  1. White Space cfc and css
    By jcrip in forum Macromedia ColdFusion
    Replies: 7
    Last Post: August 8th, 05:30 PM
  2. mysterious white space
    By Denny_Wagner@adobeforums.com in forum Adobe Illustrator Windows
    Replies: 17
    Last Post: April 27th, 07:17 PM
  3. Getting rid of white space...
    By Marcos Rebelo in forum PERL Beginners
    Replies: 9
    Last Post: September 8th, 06:57 PM
  4. How do you build a project to target Framework 1.0 in VS 2003?
    By David Flynn in forum ASP.NET General
    Replies: 3
    Last Post: July 3rd, 01:17 PM

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