Iphone App Crash on Running - iphone

I made a simple application on XCode 4.2 and Sqllite.
It runs on Simulator smoothly. I made its build and run on Iphone 4S with iOS 5.
it Runs and crash without any error.
Guide me to detect the problem.

Try debugging on the device in your app delegate or if need be in your main.m file.
Also check the Console app on your Mac.
It contains device logs you might use to learn more.

make sure about ur version. and did you have the provisioning profile and certificate installed to push the kit in the device?
if you dont have any provisioning profile associated with the iphone it wont let you push or run the kit on your device..

Has the app ever worked on the iPhone?
If so, you may have changed the datamodel, which would cause the app to stop working.
You'll have to delete the app from the phone, then re run it.

Connect your device to Mac, Open Xcode, Open Organizer inside xcode. Than see Devices Section, you may get your device name.. Than see Device Logs. Now you run your app in device only not from xcode to device.. you will get same Console output see in Organizer Device Log

Related

App on iphone 5 failed to install using itunes

I am new to iphone development. I know that in order to make apps for ios devices either you need to have developer account or jailbreak ios device. I jailbroke my iphone 5. Then I made simple hello world app for iphone and then converted it to .ipa. Now when I install it via itunes, I first see icon on my iphone and see that it is installing. After completion, it pops up a message that app failed to install. How can I fix this problem? Why its not installing?
http://www.securitylearn.net/2012/12/26/build-ipa-file-using-xcode-without-provisioning-profile/
Try it it will help full , you can directly run app on your device

cant open xcode 4.5.1 app on jailbroken iphone 4s 5.1.1

I have created a simple app on xcode 4.5.1 and have followed a tutorial on how to send it over to my jailbroken iphone 4s (5.1.1). I've created a fake code sign and I have been able to transfer the app onto my iphone. But when I click on it to run it, it opens but immediately closes again. When I use the iphone as simulator on xcode it does the same thing and i get the error message "failed to get the task for process 27658".
Please help
That's simple:
I thing Xcode disallow this to reduce cracking code signing.
A developer program is needed. Thats all.
Take a look at this: https://developer.apple.com/programs/ios/
If you're gonna write a succsessful app you should buy this.

Xcode 4.2.1: universal app runs on iPad but not on iPhone

I am working on a universal application where I am stuck at one point. I was able to successfully launch my application both on iPhone and iPad but since 2-3 days, I am not able to launch my application on neither iPhone nor iPhone simulator but it runs smoothly on iPad/iPad simulator.
Also when I run my app choosing iPhone device it shows message like Running the App on iPhone simulator but I am not able to see any effect on my simulator. I am using Xcode 4.2.1 and I guess the issue is pertains to the same.
I don't know whether it is a solution or not but got a way out by reinstalling the iOS Simulator.
I have faced same problem. This probably happens when you replace the application with the newScheme/EditScheme by mistake.
Just carefully check when you run your application is there your application name appear. This will be immediate left at where you choose iPhone simulator or iPad simulator version.

Using the 4.2 SDK, how do I install on a jailbroken device without paying?

I'm having trouble installing my application on a jailbroken device without being a paid member of the iPhone Developer Program. It seems like I've tried everything. I've tried:
Building the .app , placing it in a Payload folder, zipping it and
changing to .ipa.
Building to an .app and manually playing that in the /Applications
folder and respringing
I'm using the 4.2 SDK and attempting to test on a jailbroken 4.2.1 iPad. Whenever I get the app on there and try and launch it, it crashes immediately. It works flawlessly on the simulator.
If you pay the $99 to enroll and get an iOS Developers certificate, you'll be able to deploy the app to the device with the Xcode debugger, and likely see exactly why the app is crashing.
Your best bet would be to find a friend with an account already and have them set you up. Not sure how that jives with any terms in the agreement.

My app reboots iPhone on 4.1 iOS

I've upgraded my iOS on iPhone 3G to 4.1 and now I run my app on the device.
Firstly, I couldn't install it becouse Xcode was saying I don't have certification etc. (I have jailbroken iPhone). Finally, I succeeded and installed it.
But know something strange happens....
After I had installed my app on the device I run it.
Then, "cocos2d" image appears on the screen and just a second later device switch off! It simply reboots.
What's more - when the device launchs again and I run my app - it works!
I have no idea what's going on. This app works fine on 3.1.3 iOS (even with the same Xcode - 3.2.5)
What should I do?
Do you think the problem is caused by Xcode or iPhone itself?
Maybe reinstalling Xcode may help?
It could be one of two problems.
It could be a problem with your device. Maybe something got sort of wonky with your jailbreak.
Secondly, it could be a problem with your app. Maybe it's crashing. Have you checked your crash logs?