I am trying to make a log appear using this code. However I cannot see the log. xcode just crashes.
-(void) deleteMyFiles:(NSString*)filePath {
NSError *error;
if([[NSFileManager defaultManager] fileExistsAtPath:filePath]) {
[[NSFileManager defaultManager] removeItemAtPath:filePath error:&error];
} else {
NSLog(#"not Exists");
}
}
Crash Report of xcode
Process: Xcode [3625]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 5.0 (3332.25)
Build Info: IDEApplication-3332025000000000~2
App Item ID: 497799835
App External ID: 38302662
Code Type: X86-64 (Native)
Parent Process: launchd [145]
User ID: 501
Date/Time: 2013-11-17 12:19:38.805 +0900
OS Version: Mac OS X 10.8.5 (12F37)
Report Version: 10
Interval Since Last Report: 58305 sec
Crashes Since Last Report: 6
Per-App Interval Since Last Report: 62699 sec
Per-App Crashes Since Last Report: 6
Anonymous UUID: 2C13D4CB-E939-611C-EA15-933EC101D4E5
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information:
ProductBuildVersion: 5A1413
ASSERTION FAILURE in /SourceCache/IDEKit/IDEKit-3591/Framework/Classes/Editor/IDEEditorDocument.m:702
Details: Autosaving when there is a different document instance registered w/ IDEDocumentController { self:0x7fda77aa62a0: 0 0x00000001099e5f48 -[DVTDocumentLocation(IDESourceControlDocumentLocationAdditions) exportDocumentUsingTemplateDocument:completionBlock:primaryBehavior:] (in IDEKit)
1 0x00000001097ba663 -[IDESourceControlComparisonEditorDataSource documentForPrimaryDocumentLocation:completionBlock:] (in IDEKit)
I think the main reason is that I am using the LLDB debugger but I want to change to GDB but there is no option except LLDB in the edit scheme area.
GDB is not supported in Xcode 5. Quote from release notes:
Important: Xcode 5 does not support use of the LLVM-GCC compiler and the GDB debugger. Existing projects configured to use LLVM-GCC and GDB will be reconfigured to use the LLVM compiler and LLDB debugger when opened by Xcode 5. Please file a bug using bugreporter.apple.com for any issues that prevent you from moving to Xcode 5 for this reason.
Maybe discussion in this thread # discussion.apple.com helps to fix that crashing problem.
Related
When I try to open Xcode, it crashes unexpectedly and asks me to reopen. But reopening also gives me the same error. I have XCode 10.2.1 as well as XCode 11.7 installed.
Problem details and system configuration:
Process: Xcode [1607]
Path: /Applications/Xcode1.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 10.2.1 (14490.122)
Build Info: IDEFrameworks-14490122000000000~6 (10E1001)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Xcode [1607]
User ID: 501
PlugIn Path: /Applications/Xcode1.app/Contents/Developer/usr/lib/libMainThreadChecker.dylib
PlugIn Identifier: libMainThreadChecker.dylib
PlugIn Version: ??? (64490.34)
Date/Time: 2020-11-16 21:23:39.623 -0500
OS Version: macOS 11.0.1 (20B29)
Report Version: 12
Bridge OS Version: 5.0.1 (18P2561)
Anonymous UUID: 14ACF447-0D96-DDDB-DD2C-2FE0B3DB664D
Time Awake Since Boot: 4800 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x00007fff237919b9
Exception Note: EXC_CORPSE_NOTIFY
Termination Signal: Bus error: 10
Termination Reason: Namespace SIGNAL, Code 0xa
Terminating Process: exc handler [1607]
VM Regions Near 0x7fff237919b9:
__TEXT 7fff22bf8000-7fff23600000 [ 10.0M] r-x/r-x SM=COW /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
--> __TEXT 7fff23600000-7fff23800000 [ 2048K] r-x/rwx SM=COW /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
Submap 7fff23800000-7fff40000000 [456.0M] r--/rwx SM=PRV process-only VM submap
Application-Specific Information:
/Applications/Xcode1.app/Contents/Developer/usr/lib/libMainThreadChecker.dylib
ProductBuildVersion: 10E1001
Faced the same issue on Big Sur update. Git stopped working as well. Fixed it by running following command in terminal.
defaults write com.apple.dt.Xcode DVTDisableMainThreadChecker 1
Original Answer Reference: https://developer.apple.com/forums/thread/651985?answerId=637934022#637934022
Faced the same issue after updating to Big Sur.
Found a temporary workaround:
Go to Xcode10.app/Contents/Developer/usr/lib
Rename the file libMainThreadChecker.dylib into anything else (I named it _libMainThreadChecker.dylib)
NOTE: If your project has "Main thread checker enabled" it may crash somewhere, so it's better to disable it.
This is a known issues
Currently there is one workaround for this.
You've to run the following command in the Terminal app to avoid crashes when starting Xcode:
defaults write com.apple.dt.Xcode DVTDisableMainThreadChecker 1
Now deactivate "Main Thread Checker" in your Xcode project: Edit
Scheme -> Run/Test -> Diagnostics -> Uncheck Main Thread Checker.
I use XCode 8.2.1 to debug my app. Every time when click the stop debug button, The XCode will crash. This is the following crash info:
Process: Xcode [1478]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 8.2.1 (11766.1)
Build Info: IDEFrameworks-11766001000000000~5
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Xcode [1478]
User ID: 501
Date/Time: 2017-01-06 16:24:45.369 +0800
OS Version: Mac OS X 10.11.6 (15G1212)
Report Version: 11
Anonymous UUID: A7D6D50D-A3D3-32EF-A3FC-160E5195E461
Time Awake Since Boot: 3000 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Does anyone has the same issue?
There was a race condition bug in lldb that was fixed very recently - should show up in the next official tools release - that could cause debugger shutdown crashes. Without seeing the crashed thread though, it's hard to tell whether it was likely one of these crashes.
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)
When I'm running my cocoa application inside Xcode it works fine.
But I'm going to where the .app file is and run it from there this error shows up:
Process: QBLoader [4571]
Path: /Users/USER/Library/Developer/Xcode/DerivedData/QBLoader-egxdvwlbzueazygfdbjqcxtgyvqz/Build/Products/Debug/QBLoader.app/Contents/MacOS/QBLoader
Identifier: com.fsm.QBLoader
Version: 1.0 (1)
Code Type: X86-64 (Native)
Parent Process: launchd [210]
Date/Time: 2012-05-25 09:25:31.121 +0200
OS Version: Mac OS X 10.7.3 (11D50)
Report Version: 9
Interval Since Last Report: 62057 sec
Crashes Since Last Report: 10
Per-App Interval Since Last Report: 20 sec
Per-App Crashes Since Last Report: 10
Anonymous UUID: 5DEC6815-69C3-48FA-A3C4-3EEBC31CC1B6
Crashed Thread: 0
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000
Application Specific Information:
dyld: launch, loading dependent libraries
Dyld Error Message:
Library not loaded: /Library/Frameworks/SBJson.framework/Versions/A/SBJson
Referenced from: /Users/USER/Library/Developer/Xcode/DerivedData/QBLoader-egxdvwlbzueazygfdbjqcxtgyvqz/Build/Products/Debug/QBLoader.app/Contents/MacOS/QBLoader
Reason: image not found
This is what worked for me.
I changed "Installation directory" for the SBJson target to: "#executable_path/../Frameworks".
Now is it possible to run the application outside Xcode.
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.