Console program for iPhone terminated in 20 seconds on simulator

Hi,
I have a console program for iPhone which simply uses printf to output. It works fine on iphone but not on Simulator.
I noticed that iphone has a watchdog time to stop a program which loading more than 20 seconds. I believe the simulator treats my console application as a always loading one and terminated after 20 seconds. The evidence is if I cut my program into small pieces (finish running in 20 seconds), and run them piece by piece, no any problem happens.
Since my customer wants that program runs on simulator as one piece, I'd like to ask if there is a simple way to turn off the 20 second timer, or let simulator know I am not loading anything.
Thanks.

I start my program from XCode IDE by 'Build and Go', then choose menu Run->Console to open the debugging console, I will see my printfs there.
After 20 senconds, the output stops, on the bottom of Console window, I see 'debugging terminated'.

Similar Messages

  • What is the preferred virus scan program for iphone? I believe that I have a virus. My phone will come on by itself and it appears to be recording audio. I have read about spyware/surveilance viruses that will record audio and take photos.

    What is the preferred virus scan program for iphone? I believe that I have a virus. My phone will come on by itself and it appears to be recording audio. I have read about spyware/surveilance viruses that will record audio and take photos.

    My phone is not jailbroken.  I don't know what you mean about hacked.   Maybe it is hacked?   This is what is happening: About three times over the past few months I've noticed that my phone while "off" will come on (light up) and the screen shows an arrow towards the bottom; an arrow such that you would see on various "players" in order to "play" video or audio, I've searched my phone and cannot find any app that produces this particular screen though. Once I pick up the phone when this screen myseriously appears out of nowhere and press anything, it goes away and goes to the standard "slider" front page to unlock the phone.

  • Anti-Virus program for iPhone!

    Does any one has the idea about anti-virus program for iPhone? When I download the email, I am so concern about the virus attached with the email? Maybe, Apple should consider developing specific anti-virus program for iPhone!

    Does any one has the idea about anti-virus program
    for iPhone? When I download the email, I am so
    concern about the virus attached with the email?
    Maybe, Apple should consider developing specific
    anti-virus program for iPhone!
    iPhone is running OSX not to say that Mac OSX can't catch a virus, but its the least out there to catch one! So for now I dont think you need to worry about that. I am sure apple will be putting software patches soon as there are some other problems with the iphone as we've all had with our brand new gadgets or computers before. So wait it out and apple most likely will do a fix to it. As to virus protection...most mac users don't have to worry about it, I'm pretty sure if the phone is running a phone version of OSX then virus protection should be one of the invisible features inside.

  • Best backup program for iPhone 3GS??

    I am looking for the BEST backup program for the above - not only a program which makes backups of the programs, but ALO the contents of the programs - of everything! Any recommendations, thanks!

    I agree with the first reply UNLESS your iPhone is not being backed up by iTunes because it gets stuck. I actually just posted a question in re to this problem. For all you Apple owners I know, I should've bought an Apple. Well, I've owned three iMacs in the last 3 years and they are fabulous computers- u just didn't have 1300 laying around this time so I got a pretty powerful PC for 600.
    Anyway, my point being iTunes works great as a backup app for the iPhone. I just think my issue is I'm using Windows 7 64-bit with iTunes 64-bit and there might be some glitch because as soon as I click the 'x' besides "Backing up iPhone..,." it syncs fine, I just don't have a backup. Unfortunately I didn't get the Apple protection plan for the iPhone, but I doubt it's the phone anyway. Thanks.

  • Looking for a billingual (Chinese and English) Bible program for iPhone 4S

    Hi.
    Does anyone know of a good billingual (Chinese and English at the same time) Bible program/app. for iPhone 4S?
    Thank you in advance.

    Here are a couple to try
    1) Free, but uses the ShenZhou translation and KJV: http://itunes.apple.com/us/app/chinese-bible-free-english/id415158354?mt=8
    2) Costs US$2.99. Uses CUV (HeHeBen) in Traditional Chinese (not Simplified) and KJV: http://itunes.apple.com/us/app/zhong-ying-wen-sheng-jing/id468445222?mt=8

  • Password program for iPhone

    Is there anything similar to 1Password for the PC? I'd like to keep encrypted passwords on my iPhone. Ideally, if they could fill into webpage logins and such that'd be great, too. I've heard/read about the webapp, but I don't really trust that, and I don't want to have to rely on web access to have access to my passwords. I've also heard of people saving logins/passwords in email draft, but that doesn't have encryption.
    Message was edited by: Metalastic

    1Password is not a 3rd party app for the iPhone, it is an app for OS X that creates and encrypted bookmark in Safari. My question was if there is a similar product on the PC, or if 1Password will be ported to the PC.

  • Anti virus for iphone 4S

    does anyone recommend an anti virus program for iphones?  My Aol account was hacked and the AOL representative that helped me told me not to have my account saved on the iphone because it is not safe to store passwords on the iphone. So I was just wondering if anyone else has been hacked or uses anti virus software on their phone.

    Hi Dear,
    I am a bussinessman in Dubai, and very impressed with your knowlidge and your dedication to help others. Is it possible for you to send me your email address or skype or anyway that i can contact you directly for some reasons. I will be greatful for your time.
    My Contacts
    [email protected]
    [email protected]
    [email protected]
    GSM 00971-52-9112791
    GSM 00971-50-5228183

  • TS1702 We use one ID for  the Apps store for 2 iPhones. In the second profile on the Macit is impossible to update apps there is a mistake. What is the decision?

    We use one ID for  the Apps store for 2 iPhones. In the second profile on the Macit is impossible to update apps there is a mistake. What is the decision?

    This happens when you both use the same Apple ID for iMessage.  To fix this you have two choices:
    On one of the phones go to Settings>Messages>Send & Receive, tap the ID, sign out, then sign back in with a different ID.  Note: you can still share the same ID for purchasing in Settings>iTunes & App Stores; or
    On both phones go to Settings>Messages>Send & Receive and uncheck the email address(es) shown under "You can be reached by iMessage at".  Also uncheck the other phone's phone number, if present.

  • Firefox 4 is freezing on GMail tab at frequent intervals on Windows 7, resulting in a message "Program not responding". Remains open but becomes unresponsive for a fill minutes or seconds. And problem repeat, repeat...

    Firefox 4 is freezing on GMail tab at frequent intervals on Windows 7, resulting in a message "Program not responding".
    Remains open but becomes unresponsive for a fill minutes or seconds. And problem repeat, repeat...

    Check this out;
    http://www.clamxav.com/ free malware scanner for Mac OS X
    https://discussions.apple.com/docs/DOC-3291

  • Hi, I followed the instructions to apply for the Made For iPhone Program. After submission of the necessary documents and information, I have not heard back from Apple. How to track the application progress? Can someone help?

    Hi, I followed the instructions from Apple MFI website, to apply for the Made For iPhone Program. After submission of the necessary documents and information, I have not heard back from Apple for couple weeks. How to track the application progress? Can someone help? < Edited by Host >
    Thank you.
    Best Regards,
    Gerald

    Hi Gerald
    This is a user-to-user forum, and your message will not be received by Apple. You will need to sign into your Developer/MFI account, and contact Apple that way. This can be done here.
    P.S Please do not post your e-mail address here.
    Taylor

  • Replacement Program For Faulty iPhone 5 Sleep/Wake Buttons

    My iPhone 5 apply to Replacement Program For Faulty iPhone 5 Sleep/Wake Buttons, but I'm in Argentina. How can I participate if my country doesn't appear in the list of participating providers to fix the problem?
    Argentina will be added to the program?
    I can't travel to US... Help please!

    Hey there kevinfur91!
    I have a link for you that should be able to help you find the best support option in your area for this issue. This link is for the generic page regarding this issue, but you will want to use the drop down menu on the left hand side of the page to choose “Latin America” and see the support options that are most relevant to your area:
    iPhone 5 Sleep/Wake Button Replacement Program - Apple Support
    https://ssl.apple.com/support/iphone5-sleepwakebutton/
    This page will also require that you enter your iPhone’s serial number in order to see your support options. If you need help finding your serial number, please refer to the following article for assistance:
    iOS: How to find the serial number, IMEI, MEID, CDN, and ICCID number
    http://support.apple.com/kb/HT4061
    Thanks for being a part of the Apple Support Communities!
    Regards,
    Braden

  • I brought an IPhone 5 from a second hand source and I tried to activate it but it asked for his Apple ID how can I get around that

    I brought an IPhone 5 from a second hand source and I tried to activate it but it asked for his Apple ID how can I get around that?

    MarkeyMarcc wrote:
    I brought an IPhone 5 from a second hand source and I tried to activate it but it asked for his Apple ID how can I get around that?
    Read this: Find My iPhone Activation Lock: Removing a device from a previous ...

  • When trying to download 4.3.3 for iphone 4 with firewall off and antivirus off but i keep on getting the error code 3259 - sometimes it times out after a few seconds other times it will be half anhour - can anyone help?

    Hi,
    When trying to download 4.3.3 for iphone 4 with firewall off and antivirus off i keep on getting the error code 3259 - sometimes it times out after a few seconds other times it will be half an hour - can anyone help?
    Thanks

    Before beginning the download, try temporarily disabling the antivirus, anti-adware, anti-spyware, and any other anti-whatever that is required and is running with that secure OS.

  • Songs stop playing on my iphone I try to start it again and it will not play for more than 2-4 seconds, does anyone have the solution to this problem?

    I have Imatch and songs stop playing on my iphone I try to start it again and it will not play for more than 2-4 seconds, does anyone have the solution to this problem?

    By "hard reset" you mean hold down the Home and power buttons until the iOS device restarts, correct?

  • Best program for monitoring and blocking internet use on my kids mobile devices, iPads, iPhones from my MAC

    Whats the best program for monitoring and blocking internet sites and usage for my kids on their mobile devices ipads, iphones and ipods, all from my desktop mac?

    Can't be done from your Mac remotely.
    But you can enable parental controls directly on iOS devices.
    iOS: Understanding Restrictions (parental controls)

Maybe you are looking for