• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Xcode 4.5.2 won't actually run my shell tool
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Xcode 4.5.2 won't actually run my shell tool


  • Subject: Xcode 4.5.2 won't actually run my shell tool
  • From: "Theodore H. Smith" <email@hidden>
  • Date: Fri, 21 Dec 2012 20:46:09 +0000

Hi everyone,

So I haven't done much with Xcode recently. I used to use Xcode 3.X just fine, for many years.

I got a new Mac, and it's too new for Xcode 3.X, so I'm using Xcode 4.X instead.

So I tried making a simple test project, to test the speed of malloc. I created a new project using a "shell tool" template, via Xcode's "New Project" menu.

I wrote some code... Xcode checks the errors as I type, so far so good.

I press the "Run" button on the top-right of the screen, and... nothing happens. Well actually, the bottom of the window flickers, for a moment I can see the "console window" appear, and then disappear. as if my program ran in 0.05 of a second or something.

BUT I coded my program explicitly, to run for 10 seconds! So something is wrong, it should not just run in 0.05 of a second!

I tried adding an "exit(-1)" at the start of my main function. And... re-run, nothing. No error. The program runs just fine.

I tried finding the shell tool I just built, and it's not in a build folder next to the project like it used to be. Much to my dismay, it was buried somewhere in "Users/theodore/Library/Xcode". I tried running it directly via Terminal, and... same thing, it just completes normally as if I didn't enter "exit(-1)" at the start of my program.

I'm guessing this is something to do with my build settings. But I have no idea what.

As far as I can tell, I did everything correctly:

1) select new "shell tool" template, via "New Project" menu.

2) Type in code

3) Press run.

What else was I supposed to do?

Here are some pictures of my build settings, in case this helps:

http://elfdata.com/temp_pics

Thanks a lot everyone!



--
http://jeebox.org/
"An extensible language for describing code, concepts and stories"


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Xcode 4.5.2 won't actually run my shell tool
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: New IB Screen Layout Toggle Button
  • Next by Date: Re: problem with finding framework header file under Xcode 4.5.2 (fixed)
  • Previous by thread: Re: New IB Screen Layout Toggle Button
  • Next by thread: Re: Xcode 4.5.2 won't actually run my shell tool
  • Index(es):
    • Date
    • Thread