iPhone 4 app crash for the second launch - iphone

I deployed my app in iOS 4.3.2 and installed successfully.
My App runs well through xcode and if i stop the gdb and launch app from device, app crashes at startup
What should i do?

Recover the crash log in the organizer and check the callstack.

Related

Can't Launch Xcode App Without Code Signing on iPad, Can on iPhone

I am trying to deploy an Xcode app to my iPad without code signing. To do so, I have edit the SDKSettings.plist file, changed my project settings to do not run, and installed AppSync. This is the error I receive:
Error launching remote program: failed to get the task for process 1019.
This is the error in the debug screen:
Error launching remote program: failed to get the task for process 1396.The program being debugged is not being run.
The number keeps changing. On my iPhone, once I hit "ok" to dismiss the error on my computer, I can launch the app from the springboard and use it perfectly. However, on my iPad, this is not the case. It just crashes if I attempt to open it.
Has anyone ever had this program, or know how to solve it?
Also, my iPhone is on 5.0.1, and my iPad is on 5.1.1. The app works fine in the simulator, though.
You must have a valid provisioning profile, which requires enrollment in the iOS Developer Program. There is no way to run apps on an iOS device without a provisioning profile. For more information: https://developer.apple.com/programs/ios/

app built gives success but doesn't launch on my iphone device

Often when i try to run my app on my device it is a success but doesn't launch on my iphone device. Message is Finish running application
I ran through the same problem. A lot of applications were running in the background mode in the device. I restarted the device and killed all the background apps. This time when I ran my app from Xcode it worked on the device.

Cant launch iOS app with Instruments on device

App installs, Instruments launch, but drop down in instruments says select target, and the app never launches. Console says
6/14/11 2:36:22 PM Instruments[1951] XRMobileDeviceException while performing application lookup on device : (null)
Device is iOS 4.3.3, regular build and run works and no warnings from Xcode. Profile just doesnt work. Tried cleaning the build, restarting Mac OS and the device. Still no go!
I had the same problem. I didn't solve it, but an easy workaround is to launch the app yourself and then attach to it from the Attach to Process... command in the Target menu in the Instruments window.
I had the same problem, my solution was to initiate instruments from XCODE.
Xcode 11:
Run the app on simulator
Open Debug Navigation (Command + 7)
Click on cpu
Click on “Profile in Instruments”
Xcode 3.2.5
Launch XCODE
Select Device, or Simulator
Up on top Click RUN > RUN WITH PERFORMANCE TOOL > LEAKS
This allowed me to test without giving me that error.
This is in XCODE 3.2.5 that I did this in .. it might be a little different if you are using 4.x

xcode 3.2.5 with iOS 4.2 crashes when deploying to device

I've updated for xcode 3.2.5 and iOS 4.2 but now everytime I deploy to device (ipod touch 2nd generation with iOS 4.1 installed) it crashes the ipod and forces it to restart.
then it restarts the device and I can go open the application regularly through its icon.
but the real pain here is that everytime I deploy to the device I have to wait for it to crash, restart the device which takes ages and them open the app by clicking on its icon.
I've already changed the target sdk to be less or equal then 3.0, hence the app working after a restart as it should.
Anyone could help me with the reason for crashing the device?
Thanks in advance
There are plenty of issues with Jailbroken devices at 4.2.1; from Xcode not collecting the Symbols for 4.2.1 from the device, to issues with dylib's loading at debug time. Many debugging facilities won't run on a jailbroken device either. Check to see if you've booted in tethered mode in redsn0w, develop on a different device temporarily, or downgrade to 4.1/4.0.1.

iPhone Simulator Apps Crash

I am trying to run my app in iPhone Simulator, but it crahes on the start. Moreover, default apps (settings, Safari etc) crash too. Console doesn't show anything except
[Session started at 2010-07-23 13:44:07 +0400.]
Failed to launch simulated application: Unknown error.
and there are no crash logs in /Library/Logs/DiagnosticReports. What is the problem?
XCode version 3.2.2 (version 3.2.3 crashes as well).
I have seen Xcode get confused. Sometimes, a reboot fix it.
Otherwise, in the iPhone simulator, try the command "iPhone Simulator > Reset Content and Settings...".
If not, you will have to uninstall and reinstall the dev tools.
Use this command to uninstall:
sudo <Xcode>/Library/uninstall-devtools --mode=all