Deploying an App from Xcode to a device without launching the app
I'm trying to track down an 0x8badf00d error which is caused by the watchdog process killing our app on startup for taking too long. The problem is that it only happens on the first launch of the app (when the app is creating开发者_JS百科 our database).
So I need to be able to deploy the app from XCode to my IPad without having it autolaunch the app. The only options I see in Xcode are to Build-run or Build-debug. How do you deploy an app to a device without having Xcode launch it. I want to do this because I've read that if Xcode starts your app, it disables the watchdog process.
Thanks,
Xcode's Organzier (available from the menu: Window/Organizer) will allow you to load an app onto a device. You can then run the app without the debugger.
I'm not sure this is available in Xcode, but a workaround would be for you to add code to your app to always force it to go through the initialization codepath on launch. For instance, if you're being watchdogged while creating your database, add a little code to delete your database as soon as you launch, so you'll always re-create the database. This should work for your debugging purposes.
精彩评论