XCode repeatedly hangs on launch - xcode

I'm new to OSX and running Mountain Lion in a Virtual Box VM. Xcode was running fine and I managed to create a simple Hello World App. I restarted the VM and when I tried to reopen my project Xcode crashed. I didn't think anything of this at the time but every time that I have relaunched Xcode since, it has frozen at this stage:
The CPU goes up to 95%ish usage and I have to force quit Xcode.
The following is in Xcode_Timestamp.hang:
Date/Time: 2013-06-07 12:02:37 +0100
OS Version: 10.8 (Build 12A269)
Architecture: x86_64
Report Version: 11
Command: Xcode
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Version: 4.6.2 (2067.2)
Build Version: 2
Project Name: IDEApplication
Source Version: 2067002000000000
App Item ID: 497799835
App External ID: 15055625
Parent: launchd [121]
PID: 353
Event: hang
Duration: 0.88s
Steps: 9 (100ms sampling interval)
Hardware model: MacPro3,1
Active cpus: 1
Free pages: 433637 pages (+16260)
Pageins: 1 pages
Pageouts: 0 pages
Process: Xcode [353]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Architecture: x86_64
Parent: launchd [121]
UID: 501
Task size: 175291 pages (-18383)
CPU Time: 0.456s
And in system.log:
Jun 7 12:16:07 imorelaptop.hkc2k3.local Dock[136]: no information back from LS about running process
Jun 7 12:16:17 imorelaptop.hkc2k3.local WindowServer[86]: CGXDisableUpdate: UI updates were forcibly disabled by application "Xcode" for over 1.00 seconds. Server has re-enabled them.
Jun 7 12:16:31 imorelaptop.hkc2k3.local WindowServer[86]: disable_update_likely_unbalanced: UI updates still disabled by application "Xcode" after 15.00 seconds (server forcibly re-enabled them after 1.00 seconds). Likely an unbalanced disableUpdate call.
Jun 7 12:16:39 imorelaptop.hkc2k3.local WindowServer[86]: reenable_update_for_connection: UI updates were finally reenabled by application "Xcode" after 23.15 seconds (server forcibly re-enabled them after 1.00 seconds)
Jun 7 12:17:11 imorelaptop.hkc2k3.local sandboxd[461] ([38]): mds(38) deny mach-lookup �#�:�*��;�j�Z��=�����~�הz�Q�F���N�m�mR���>wD+֍�T#���)�`�ثw�T78۲��r���-�j�&��ň����P�6EAM-�0b
���Q��Xh�R��S�^��
Jun 7 12:17:11 imorelaptop kernel[0]: Sandbox: sandboxd(461) deny mach-lookup com.apple.coresymbolicationd
Jun 7 12:17:11 imorelaptop.hkc2k3.local sandboxd[461] ([38]): mds(38) deny mach-lookup �#�:�*��;�j�Z��=�����~�הz�Q�F���N�m�mR���>wD+֍�T#���)�`�ثw�T78۲��r���-�j�&��ň����P�6EAM-�0b
���Q��Xh�R��S�^��
Jun 7 12:19:51 imorelaptop.hkc2k3.local WebProcess[306]: CoreAnimation: unhandled combiner function: 11
I have tried restarting my VM, increasing the RAM to 4GB (from 2GB) and reinstalling Xcode but still experiencing the same issue. I have also tried opening specific apps and files in Xcode, but the application still hangs at the same point.

Related

XCode crashes when running Unity project in Simulator

Running XCode 6.1.1 and Unity 4.6.1 (free version)
I edited the Unity-Generated Xcode project so that Base SDK is "iOS 8.1", and Supported Platforms is "iOS". Other than that, it is the same. Each time I run the project, XCode asks me if I want the app to accept incoming Network Connections (really annoying btw), and then XCode implodes with the below, about a Code Signature being invalid with lldb. I can't imagine I'm the only one out there with this issue, but Google has not helped me out with finding others with this issue. So... not sure what's happening here.
Process: Xcode [9062]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 6.1.1 (6611)
Build Info: IDEFrameworks-6611000000000000~4
App Item ID: 497799835
App External ID: 810788292
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Xcode [9062]
User ID: 501
PlugIn Path: /Users/gregory/Library/Developer/CoreSimulator/Devices/4763D685-8069-492C-AACD-210671E5A7DD/data/Containers/Bundle/Application/D574563E-8038-4C30-B88B-0FF3B1AF96F1/LaserLarry.app/LaserLarry
PlugIn Identifier: ca.crescentdevelopment.LaserLarry
PlugIn Version: 1.0 (1.0)
Date/Time: 2015-01-27 12:05:28.662 -0800
OS Version: Mac OS X 10.10.1 (14B25)
Report Version: 11
Anonymous UUID: D4619ABC-7D43-9E17-7C12-7ECEBAE0D4CA
Sleep/Wake UUID: 2F24D97F-F4B6-42EC-BFE3-110FF9BA4544
Time Awake Since Boot: 59000 seconds
Crashed Thread: 24 <lldb.process.internal-state(pid=9138)>
Exception Type: EXC_BAD_ACCESS (Code Signature Invalid)
Exception Codes: 0x0000000000000032, 0x000000011b5fa000
kernel messages:
-1 sec CODE SIGNING: cs_invalid_page(0x11b5fa000): p=9062[Xcode] final status 0x3000200, denying page sending SIGKILL
-1 sec CODE SIGNING: process 9062[Xcode]: rejecting invalid page at address 0x11b5fa000 from offset 0xed4000 in file "/Users/USER/Library/Developer/CoreSimulator/Devices/4763D685-8069-492C-AACD-210671E5A7DD/data/Containers/Bundle/Application/D574563E-8038-4C30-B88B-0FF3B1AF96F1/LaserLarry.app/LaserLarry" (cs_mtime:1422389070.0 == mtime:1422389070.0) (signed:1 validated:1 tainted:1 wpmapped:0 slid:0)

Cocos2d crash in CCLayer only on first run of the app

I have the newest cocos2d, Xcode4 and iOS5 SDK. I am testing my app on my iPhone 4 (5.0.1). No crashes occur on the simulator - only on devices.
On first run, my app crashes before entering the first scene, which it does by CCTransitionFade. It crashes in CCLayer at the line:
glDrawArrays(GL_TRIANGLE_STRIP, 0, 4);
If i load the app again, it boots fine - no crashes.
I removed the CCTransition and made the first scene boot up without a transition, and i received no crash on first run (great!). However, during the game there is a point where i put a colorlayer over the top of the gamescene and fade the opacity of the color layer down to 50% or so. The game crashes here.
These crashes ONLY occur if the app is being run for the first time. Both crashes have opacity fading in common. Both crashes fail at the same line, in CCLayer.
This crash occurs on iPhone 4 (iOS 5.0.1) and iPad (iOS 5.0.1), but NOT iPhone 4 (iOS 4.2.1).
Does anyone have any thoughts, ideas or suggestions? I'm at a complete loss!
debug version running on device via xcode, crash at start:
Mar 6 23:36:53 unknown Boco[10699] : cocos2d: surface size: 640x960
Mar 6 23:37:08 unknown securityd[10702] : MS:Notice: Installing: (null) [securityd] (675.00)
Mar 6 23:37:08 unknown ReportCrash[10700] : MS:Notice: Installing: (null) [ReportCrash] (675.00)
Mar 6 23:37:09 unknown ReportCrash[10700] : Formulating crash report for process Boco[10699]
Mar 6 23:37:09 unknown com.apple.launchd[1] : (UIKitApplication:com.sunlight.boco[0x79a]) Bug: launchd_core_logic.c:3730 (25147):3
Mar 6 23:37:09 unknown com.apple.launchd[1] : (UIKitApplication:com.sunlight.boco[0x79a]) Assuming job exited: : 10: No child processes
Mar 6 23:37:09 unknown com.apple.launchd[1] : (UIKitApplication:com.sunlight.boco[0x79a]) Job appears to have crashed: Segmentation fault: 11
Mar 6 23:37:09 unknown SpringBoard[10505] : Application 'boco' exited abnormally with signal 11: Segmentation fault: 11
Mar 6 23:37:09 unknown ReportCrash[10700] : Saved crashreport to /var/mobile/Library/Logs/CrashReporter/Boco_2012-03-06-233708_James-iPhone.plist using uid: 0 gid: 0, synthetic_euid: 501 egid: 0
release version running on device ad hoc, crashing at color layer opacity change
Mar 6 23:57:40 unknown ReportCrash[343] : MS:Notice: Installing: (null) [ReportCrash] (675.00)
Mar 6 23:57:41 unknown ReportCrash[343] : Formulating crash report for process Boco[338]
Mar 6 23:57:41 unknown com.apple.launchd[1] : (UIKitApplication:com.sunlight.boco[0xe5d6]) Job appears to have crashed: Bus error: 10
Mar 6 23:57:41 unknown SpringBoard[28] : Application 'boco' exited abnormally with signal 10: Bus error: 10
Mar 6 23:57:41 unknown ReportCrash[343] : Saved crashreport to /var/mobile/Library/Logs/CrashReporter/Boco_2012-03-06-235740_James-iPhone.plist using uid: 0 gid: 0, synthetic_euid: 501 egid: 0
Didn't find a solution to this problem (see http://www.cocos2d-iphone.org/forum/topic/29958?replies=10#post-147371), so I created a new xcode project and ported all my code over. Solved the problem!

Xcode 4.2 can't debug iOS 4.2.1 (8C148)

I recently updated to Xcode 4.2. I also updated my new iPad 2 and iPod (latest generation) to iOS 5. I build my app and can debug them no problem.
My older iPod running iOS 4.2.1 (8C148) doesn't run and doesn't give any errors.
The top center panel says "Finished running MyApp on iPod One". (iPod One is the name of my first iPod touch)
There is a flicker at the bottom of Xcode as if it almost went into the debugger and was about to show the bottom output panel but it doesn't. A break point in main doesn't stop it either.
I have no errors and nothing to go on.
I have renewed all provisioning profiles, restored the device, selected "use for development", nothing has helped.
Since there is no feed back from Xcode I do not know what to do.
p.s. The app runs in all of the simulators fine as well.
When I initially select the iPod I see the following series of messages in the console for the devices as shown from the Organizer:
Thu Oct 20 09:42:49 unknown lockdownd[16] : 2ffea000
handle_connection: Could not receive USB message #6 from Xcode.
Killing connection Thu Oct 20 09:42:49 unknown
com.apple.mobile.lockdown[16] : Could not receive size of
message Thu Oct 20 09:42:50 unknown
/Developer/Library/Daemons/DTFetchSymbols[308] : Found paths:
Thu Oct 20 09:42:50 unknown
/Developer/Library/Daemons/DTFetchSymbols[308] : /usr/lib/dyld
Thu Oct 20 09:42:50 unknown
/Developer/Library/Daemons/DTFetchSymbols[308] :
/System/Library/Caches/com.apple.dyld/dyld_shared_cache_armv6 Thu Oct
20 09:42:50 unknown com.apple.mobile.lockdown[16] : Could not
receive size of message Thu Oct 20 09:42:50 unknown lockdownd[16]
: 2ffea000 handle_connection: Could not receive USB message #6
from Xcode. Killing connection Thu Oct 20 09:42:56 unknown
lockdownd[16] : 2ffea000 handle_connection: Could not receive
USB message #6 from MDCrashReportTool. Killing connection
I had the same problem, but I solved it. The cause
unsuported architecture (by default Xcode4.2 uses standard arch= armv7 ) -> add armv6
In addition to adding the armv6 architecture, I had to remove the armv7 entry from my apps info.plist "Required Device Capabilities" entry.

Xcode 4 final - breakpoints on device (ipad) not working

I downloaded and installed final version of Xcode 4. I opened my iPad project and realised that breakpoint's doesn't work on the device. They work ok on simulator though.
Before I was using Xcode 3.2 and everything was working fine.
I also tried creating an empty view based iOS application from scratch and have exactly this same issue. I was googling on that issue, but all solutions were based on previous versions of Xcode.
Any suggestions what am I doing wrong ?
Here is output from a console when running application
Mar 10 14:34:44 unknown installd[547] : entitlement 'keychain-access-groups' has value not permitted by a provisioning profile
Mar 10 14:34:44 unknown installd[547] : entitlement 'application-identifier' has value not permitted by a provisioning profile
Mar 10 14:34:44 unknown SpringBoard[29] : Killing me.device-debugging-test activate: deactivate: for app installation
Mar 10 14:34:44 unknown installd[547] : entitlement 'keychain-access-groups' has value not permitted by a provisioning profile
Mar 10 14:34:44 unknown installd[547] : entitlement 'application-identifier' has value not permitted by a provisioning profile
Mar 10 14:34:44 unknown SpringBoard[29] : Reloading application state for 'me.device-debugging-test' as its modification date has changed
Mar 10 14:34:45 unknown SpringBoard[29] : Reloading and rendering all application icons.
Mar 10 14:34:46 unknown com.apple.debugserver-48[551] : debugserver-48 for armv6 Copyright (c) 2007-2009 Apple, Inc. All Rights Reserved.
Mar 10 14:34:46 unknown com.apple.debugserver-48[551] : Connecting to com.apple.debugserver service...
Mar 10 14:34:47 unknown com.apple.launchd[1] : (UIKitApplication:me.device-debugging-test[0x4309]) Spawned and waiting for the debugger to attach before continuing...
Mar 10 14:34:47 unknown com.apple.debugserver-48[551] : Got a connection, waiting for debugger instructions for task "(null)".
Mar 10 14:34:47 unknown kernel[0] : lockbot[544] Builtin profile: debugserver (sandbox)
Mar 10 14:34:47 unknown kernel[0] : launchd[552] Builtin profile: container (sandbox)
Mar 10 14:34:47 unknown kernel[0] : launchd[552] Container: /private/var/mobile/Applications/(...) [69] (sandbox)
Reboot your device.
Short, sweet, and simple solution.
After hours spent digging through all the XCode options.

Flash player debugger plugin crashes on Mac OS [tried many version of the plugin and browsers, all of them crash]

I recently started using Mac OS X for a flex/actionscript project and having a problem with flash player debugger plugin for the browsers:
OSX: 10.6.3
Browsers I tried: firefox, safari and chrome
Flashplayer debug "Flash Player 10 Plugin content debugger (Intel-based Macs)
Whenever I open a page containing a flash content, my browser crashes due to flash player plugin's crash.
I checked the version of my flash player debug plugin with http://kb2.adobe.com/cps/155/tn_15507.html
and as the version checker is written in flash, my browser crashes a few seconds later.
I am using version 10,0,42,2 (debug edition: yes)
This is what I see in the crash log:
Process: WebKitPluginHost [338]
Path: /System/Library/Frameworks/WebKit.framework/WebKitPluginHost.app/Contents/MacOS/WebKitPluginHost
Identifier: com.apple.WebKit.PluginHost
Version: 6533 (6533.13)
Build Info: WebKitPluginHost-75331300~1
Code Type: X86 (Native)
Parent Process: WebKitPluginAgent [337]
PlugIn Path: /Library/Internet Plug-Ins/Flash Player.plugin/Contents/MacOS/Flash Player
PlugIn Identifier: com.macromedia.Flash Player.plugin
PlugIn Version: 10.0.45.2 (1.0.4f458472)
Date/Time: 2010-06-09 21:18:23.408 +0200
OS Version: Mac OS X 10.6.3 (10D2094)
Report Version: 6
Interval Since Last Report: 1232 sec
Crashes Since Last Report: 2
Per-App Interval Since Last Report: 61 sec
Per-App Crashes Since Last Report: 2
Anonymous UUID: 6765603E-22AC-4AA6-8EFF-215234877FF4
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x00000000197003e4
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Any ideas how can I track this issue ?
Cheers,
-A
Upgrading to version 10.1 resolved the issue.

Resources