Using xcode 5.1.1, and trying to debug my app on a jailbroken iphone 4 (7.1.2).
I installed Jailcoder (from the facebook page) and patched both my xcode and my project with it.
The project is just a simple view application (trying to get that to work first).
I run the app using my iphone as the build setting, the app loads on my phone but then it exits with
2014-07-28 16:00:42.831 testLiveDebug[11384:60b] otherApps (null)
Opening the console in the organizer i see this error:
Jul 28 15:51:45 my-iPhone com.apple.launchd[1] (UIKitApplication:com.debug.testLiveDebug[0xe02e][11348]) <Error>: (UIKitApplication:com.debug.testLiveDebug[0xe02e]) Exited with code: 45
Jul 28 15:51:45 my-iPhone com.apple.launchd[1] (UIKitApplication:com.debug.testLiveDebug[0xe02e]) <Notice>: (UIKitApplication:com.debug.testLiveDebug[0xe02e]) Throttling respawn: Will start in 2147483641 seconds
Jul 28 15:51:45 my-iPhone com.apple.debugserver-310.2[11346] <Warning>: 38 +6.392165 sec [2c52/1307]: error: ::read ( -1, 0x35a9ec, 18446744069414585344 ) => -1 err = Bad file descriptor (0x00000009)
Jul 28 15:51:45 my-iPhone com.apple.debugserver-310.2[11346] <Warning>: Exiting.
Jul 28 15:51:45 my-iPhone backboardd[11188] <Warning>: Application 'UIKitApplication:com.debug.testLiveDebug[0xe02e]' exited abnormally with exit status 45
I have Appsync for 7.0+ and also tried with AppSync Unified....but still i get the same error.
In the past (ios6) this whole process worked fine with jailcoder.
Any idea why i cant live debug on the device ?
-Thanks
Resupported 4+ was causing the error....after i uninstalled it everything was working fine.
Related
My website crashes on Mobile Safari, but works fine on desktop.
How can I determine why it is crashing?
What you can do when Safari quits unexpectedly showing your website:
1. Safari debug console
Use Safari's debug console. Switch on in your iPhone: Settings->Safari->Advanced->Debug console=on.
For me it says
2 HTML errors on Line 6 (Viewport argument value "device-width" for key "width" not recognized and Viewport argument value "no" for key "user-scalable" not recognized.)
2 HTML tips also n Line 6.
Debug console will be shown next time you check your web page using Safari.
2. Web Inspector (from iOS 6.0)
If it is getting more complicated to find out the problem in your webpage use Web Inspector to Debug Mobile Safari. It is a great tutorial for this.
Using IOS Simulator I found that for this particular website all iOS version I have, 5.0, 5.1 and also 6.1, runs the page correctly with crashing the page but on device (iOS 5.0.1) still crashes.
My device runs on iOS 5, so I cannot access Web Inspector, but it is certainly the next step for you to check your site on device and check Web Inspector on your machine.
3. Use iPhone Configuration Utility's Console
You can downlod Apple's iPhone Configuration Utility, then you can access your mobile's Console during Safari test.
Checking your site I see couple of memory warnings which eventually lead to Safari crash.
4a. Use Xcode's debug facility
Using Xcode you can also access the device's Console (Window->Organizer->Devices tab->Console).
Your case reported the following on console:
Apr 30 10:15:18 unknown kernel[0] <Debug>: launchd[2489] Builtin profile: MobileSafari (sandbox)
Apr 30 10:15:38 unknown MobileSafari[2489] <Warning>: Received memory warning.
Apr 30 10:15:39 unknown SpringBoard[15] <Warning>: Received memory warning.
Apr 30 10:15:50 unknown UserEventAgent[12] <Notice>: jetsam: kernel termination snapshot being created
Apr 30 10:15:50 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.apple.mobilephone[0xb2a4]) Exited: Killed: 9
Apr 30 10:15:50 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.apple.mobilesafari[0xf755]) Exited: Killed: 9
Apr 30 10:15:50 unknown SpringBoard[15] <Warning>: Application 'Phone' exited abnormally with signal 9: Killed: 9
Apr 30 10:15:50 unknown SpringBoard[15] <Warning>: Application 'Safari' exited abnormally with signal 9: Killed: 9
Apr 30 10:15:52 unknown ReportCrash[2491] <Error>: Saved crashreport to /Library/Logs/CrashReporter/LowMemory-2013-04-30-101552.plist using uid: 0 gid: 0, synthetic_euid: 0 egid: 0
4b. Use Xcode's debug facility, Instruments
Another sophisticated way to check what's happening is to use Instruments.
Checking again your site I see many-many low memory warning reported by Safari before it quits. Sadly it doesn't directy help you discovering the web site problem but maybe helps to find Safari open bug reports.
I had success debugging a crash by doing the following:
connect to the phones console using xcode
find the crash in the console, in my case is looks like this:
Sep 2 17:16:21 Edwards-iPhone ReportCrash[7093] : Saved report to /Library/Logs/CrashReporter/JetsamEvent-2015-09-02-171621.ips
Then go to Diagnostics in settings (settings > privacy > diagnostics & usage data - that's on ios 8.4. It's in a different place on other versions) and find the crash file.
This removes the need to guess at which crash reports the one you experienced.
I have an app that has been running fine on iOS 5, but after some testing on iOS 6, it runs fine except for when returning to the app after it has been running. Once it returns from the background it is unresponsive and then crashes about 10 seconds later.
WillEnterForeground() is executed fine and there is only some simple code in there.
Checking the console on the phone, I see the following:
Sep 20 16:41:07 Seans-iPhone-4 kernel[0] <Debug>: launchd[985] Builtin profile: container (sandbox)
Sep 20 16:41:07 Seans-iPhone-4 kernel[0] <Debug>: launchd[985] Container: /private/var/mobile/Applications/F73BBA70-90D1-4CB6-B7F3-FF10289396A9 (sandbox)
Sep 20 16:41:29 Seans-iPhone-4 backboardd[52] <Warning>: TrekkTrakker failed to resume in time
Sep 20 16:41:29 Seans-iPhone-4 backboardd[52] <Warning>: Forcing crash report of TrekTrakkerSimp[985]...
Sep 20 16:41:30 Seans-iPhone-4 backboardd[52] <Warning>: Finished crash reporting.
Sep 20 16:41:30 Seans-iPhone-4 com.apple.launchd[1] (UIKitApplication:TrekkTrakker[0x28c2][985]) <Notice>: (UIKitApplication:TrekkTrakker[0x28c2]) Exited: Killed: 9
Sep 20 16:41:30 Seans-iPhone-4 backboardd[52] <Warning>: Application 'UIKitApplication:TrekkTrakker[0x28c2]' exited abnormally with signal 9: Killed: 9
Sep 20 16:41:30 Seans-iPhone-4 ReportCrash[987] <Error>: libMobileGestalt copySystemVersionDictionaryValue: Could not lookup ReleaseType from system version dictionary
Sep 20 16:41:31 Seans-iPhone-4 ReportCrash[987] <Notice>: Saved crashreport to /var/mobile/Library/Logs/CrashReporter/TrekTrakkerSimple_2012-09-20-164129_Seans-iPhone-4.plist using uid: 0 gid: 0, synthetic_euid: 501 egid: 0
Anyone experiencing similar issues, or have any idea what might be happening?
If your not using ARC it is in all likelihood an issue with something being released that your sending a message to. Just about every version of iOS that has come out has exposed some bug that was always there but which for whatever reason was not surfaced until the new Version.
Run in the debugger and look at all the code in the levels near where it crashed for something stupid like an object that is not retained or which you though was but isn't.
Your app is crashing or rather being forced to exit by WatchDog because the app is not responsive in the 10 second window. This means that your app is taking too long to launch, this could be due to a call that is getting stuck on iOS 6 or more likely the iOS 6 device is running slightly slower for one reason or another. Use the Time Profiler instrument to look at where your startup time is going and ensure that applicationDidFinishLaunching: is returning as quickly as possible, most cases of WatchDog crashes are due to hangups in that method.
I just renamed my project and also in the project.pbxproj renamed my product to the new name.
Now I am getting codesigning error when trying to debug on the phone. How come and how do I fix this? I have defined the profile to the same as on my phone for "debug"-ing.
It works well on the simulator. It didn't work before changing the product name either. I have also cleared the file history.
Inlcuding the log here:
Fri Jul 30 12:51:36 unknown SpringBoard[28] <Warning>: Killing <SBApplication:0x6343510> com.iAndApp.BlockPop activate: deactivate: for app installation
Fri Jul 30 12:51:37 unknown SpringBoard[28] <Warning>: Reloading and rendering all application icons.
Fri Jul 30 12:51:42 unknown com.apple.debugserver-48[2630] <Warning>: debugserver-48 for armv6 Copyright (c) 2007-2009 Apple, Inc. All Rights Reserved.
Fri Jul 30 12:51:42 unknown com.apple.debugserver-48[2630] <Warning>: Connecting to com.apple.debugserver service...
Fri Jul 30 12:51:42 unknown kernel[0] <Debug>: lockbot[2617] Builtin profile: debugserver (sandbox)
Fri Jul 30 12:51:44 unknown SpringBoard[28] <Notice>: MultitouchHID(20af30) uilock state: 1 -> 0
Fri Jul 30 12:51:44 unknown SpringBoard[28] <Notice>: MultitouchHID(2277a0) device bootloaded
Fri Jul 30 12:51:45 unknown com.apple.launchd[1] <Warning>: (UIKitApplication:com.iAndApp.BlockPop[0x5ab4]) Spawned and waiting for the debugger to attach before continuing...
Fri Jul 30 12:51:45 unknown com.apple.launchd[1] <Error>: (UIKitApplication:com.iAndApp.BlockPop[0x5ab4]) posix_spawn("/var/mobile/Applications/CB93DCE9-6063-4486-9E48-E502D748CC3A/BlockPop.app/BlockPopLite", ...): Permission denied
Fri Jul 30 12:51:45 unknown SpringBoard[28] <Warning>: Unable to obtain a task name port right for pid 2631: (os/kern) failure
Fri Jul 30 12:51:45 unknown com.apple.launchd[1] <Warning>: (UIKitApplication:com.iAndApp.BlockPop[0x5ab4]) Exited with exit code: 1
Fri Jul 30 12:51:45 unknown com.apple.launchd[1] <Warning>: (UIKitApplication:com.iAndApp.BlockPop[0x5ab4]) Throttling respawn: Will start in 2147483647 seconds
Fri Jul 30 12:51:45 unknown SpringBoard[28] <Warning>: Application 'BlockPopLite' exited abnormally with exit status 1
Fri Jul 30 12:52:15 unknown com.apple.debugserver-48[2630] <Error>: error: failed to lookup the process ID for CFBundleIdentifier com.iAndApp.BlockPop.
Fri Jul 30 12:52:15 unknown com.apple.debugserver-48[2630] <Warning>: error: failed to launch process (null): unknown error.
Fri Jul 30 12:52:15 unknown com.apple.debugserver-48[2630] <Warning>: 1 [0a46/1403]: error: ::read ( 6, 0x3809f4, 1024 ) => -1 err = Bad file descriptor (0x00000009)
Fri Jul 30 12:52:45 unknown SpringBoard[28] <Notice>: MultitouchHID(20af30) uilock state: 0 -> 1
Thanks in advance!
Niklas
Well, I did as many other did, I recreated the project and moved the content to the new project. Some lessons learned that may be valuable for others:
First, I tried to create an empty project and then copied all content by just dragging the files (classes, sound files, xib files, etc.). That didn't work, complaints about that it couldn't load the files. May also have to do with that I changed name of the project earlier, that's actually when all problems started.
I created a new project that's window-based. Could be my incompetence, but I didn't manage to get the first view loaded properly and, hence, ended up with a grey first view. I created all files and xibs and copied the code from to the newly created class files. I copied/pasted all graphical objects in my xib and configured everything as they're supposed to be (class associations, actions, outlets, etc).
I created a new view-based application with exactly the name I was going to use for my app. By doing this I get the delegate AND controller file for free, and I was hoping that some of the assocations I failed to do was going to come for free now. Differently from 2 above, I now added my files by rigth-clicking on Classes/Other Resources/etc.->Add->Existing Files. The only thing I dragged from my old project was png-files. I cannot really explain why, but I guess that some associations happens behind the scenes when xCode creates the delegate and controller files which I couldn't controll when creating a windows based project, due to my incompetence or how xCode works.
Cheers,
Niklas
I had a similar problem. The Console log showed:
Mon Dec 6 10:43:46 (deviceName) com.apple.launchd[1] (UIKitApplication:(appId)[0x7f1b][2763]) : ((appId)[0x7f1b]) posix_spawn("/var/mobile/Applications/427DC185-7DD3-4286-B73E-9B650798A37D/(appName).app/CO", ...): Permission denied
This only occurred when running/debugging with XCode debugger. The app would not crash when launching from the launcher.
I tried reinstalling certificates with no success.
It appeared to me that the problem was with the debugger connecting.
I deleted the application, and on the next run/debug with XCode the problem had gone away!
I am using this script to rename my iOS project. https://github.com/ytbryan/rename
Remember to update your Xcode scheme too.
I'm getting an "Error from Debugger: Error launching remote program: security policy error" when I try to run my app on my ipod touch. The provisions look in order, and the app builds to my iphone 3gs just fine. The app used to build just fine to my ipod touch, so I'm flustered what could have changed and wondering if anyone has any thoughts on what might be causing this issue. The build logs are below.
Mon Mar 15 14:25:54 unknown com.apple.debugserver-43[449] <Warning>: Connecting to com.apple.debugserver service...
Mon Mar 15 14:25:55 unknown SpringBoard[24] <Warning>: Unable to launch com.yourcompany.Unearthed because it has an invalid code signature, inadequate entitlements or its profile has not been explicitly trusted by the user.
Mon Mar 15 14:25:55 unknown com.apple.debugserver-43[449] <Error>: error: unable to launch the application with CFBundleIdentifier 'com.yourcompany.Unearthed' sbs_error = 9
Mon Mar 15 14:25:55 unknown com.apple.debugserver-43[449] <Warning>: 1 [01c1/0903]: RNBRunLoopLaunchInferior DNBProcessLaunch() returned error: ''
Mon Mar 15 14:25:55 unknown com.apple.debugserver-43[449] <Warning>: error: failed to launch process (null): security policy error
Mon Mar 15 14:26:03 unknown MobileSafari[72] <Warning>: void SendDelegateMessage(NSInvocation*): delegate (webView:decidePolicyForNavigationAction:request:frame:decisionListener:) failed to return after waiting 10 seconds. main run loop mode: UITrackingRunLoopMode
Have you checked that the iPod doesn't contain any expired provisioning profiles? I've had trouble in the past when building to devices that contain expired provisioning profiles.
Try removing any expired profiles and see if it helps.
Delete all old expire provisioning profile..
We "fixed" this by installing the release version (built for ad-hoc distribution) and then debugging from Xcode. It installs and updates the application fine from now. 3GS with 4.3.2.
I'm trying to find out if anyone here had mysterious crash on startup and peeking into the console logs, you see AppleFairplayTextCrypterSession::fairplayOpen() failed ?
The iPhone app will connect to remote server for xml data and if the server is down this will crash the app. On subsequent startup, it will always crash until I reboot and sync to iTunes again.
I appreciate it very much if somebody can give me some clue as to how to prevent the crash or catch it and exit gracefully.
Sun Dec 6 22:50:31 unknown kernel[0] <Debug>: AppleFairplayTextCrypterSession::fairplayOpen() failed, error -42184
Sun Dec 6 22:50:31 unknown SpringBoard[25] <Warning>: Failed to spawn MyApp. Unable to obtain a task name port right for pid 140: (os/kern) failure
Sun Dec 6 22:50:31 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.--.MyApp[0x554b]) Exited: Killed
Sun Dec 6 22:50:31 unknown com.apple.launchd[1] <Warning>: (UIKitApplication:com.--.MyApp[0x554b]) Throttling respawn: Will start in 2147483647 seconds
Sun Dec 6 22:50:31 unknown SpringBoard[25] <Warning>: Application 'MyApp' exited abnormally with signal 9: Killed
I think the issue might be with this line
Application 'MyApp' exited abnormally
with signal 9: Killed
Please, see this discussion
http://discussions.apple.com/thread.jspa?messageID=9908695
Hope that helps