Re: Xcode 4.5.2 won't actually run my shell tool
Re: Xcode 4.5.2 won't actually run my shell tool
- Subject: Re: Xcode 4.5.2 won't actually run my shell tool
- From: "Theodore H. Smith" <email@hidden>
- Date: Fri, 21 Dec 2012 22:42:08 +0000
On 21 Dec 2012, at 21:43, Quincey Morris <email@hidden> wrote:
> On Dec 21, 2012, at 12:46 , "Theodore H. Smith" <email@hidden> wrote:
>
>> 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.
>
> Is there any reason you can't set a breakpoint in your main () and step through your code? That procedure hasn't changed from Xcode 3 in any significant detail.
Why would I try to set a break point in my code, if I knew my code wasn't running?
However, after you suggested setting a breakpoint, I did try set one, and it seemed to trick Xcode into running my project again. I'm not sure what the difference is.
Still, it's a success! My code ran as expected, and output some text to prove that it was running.
But it didn't "stay working"... I played around with the project settings trying to get the "Test" button to work, and then went back to the "Run" button. Somehow, despite the breakpoint existing, the program "just ran to completion" again almost instantly, not outputting any text.
I'm not sure what is going on. It looks like a bug to me.
...
I still can't get Xcode's "Test" button to work.
It says "The scheme "malloc_speed" is not configured for testing. Edit the scheme to enable testing, or cancel the action.". So I press the "Edit Scheme..." button.
I see a window. http://elfdata.com/temp_pics/win1.png
But it doesn't tell me how to "enable testing".
I tried the "+" button, but it just gives me another window: http://elfdata.com/temp_pics/win2.png
Clicking on "malloc_speed" to press the "Add" button does nothing, the "Add" button is never enabled.
I have no idea what I'm suppose to do.
--
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