13

After update Xcode 8.3 is crashing constantly. At start it was 30 to 40 minutes but today it is crashing after just 10 seconds. Any help will be highly appreciated. Below is crash report.

Process:               Xcode [555]
Path:                  /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier:            com.apple.dt.Xcode
Version:               8.3 (12169)
Build Info:            IDEFrameworks-12169000000000000~2
App Item ID:           497799835
App External ID:       821487965
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           Xcode [555]
User ID:               501

Date/Time:             2017-03-29 17:52:50.427 +0500
OS Version:            Mac OS X 10.12.4 (16E195)
Report Version:        12
Anonymous UUID:        C95FFD88-0B61-915D-E373-1F31A265D400


Time Awake Since Boot: 250 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

Application Specific Information:
MainQueue: _compat_sourcekitd_set_notification_handler_block_invoke_2
ProductBuildVersion: 8E162
ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/DVTFrameworks/DVTFrameworks-12150/DVTFoundation/FilePaths/DVTFilePath.m:905
Details:  Path must be absolute but is not: <built-in>
Object:   <DVTFilePath>
Method:   +filePathForPathString:
Thread:   <NSThread: 0x7fc33ae02970>{number = 1, name = main}
Ateeq Ur Rehman
  • 131
  • 1
  • 4

11 Answers11

2

Try cleaning your Xcode's derived data. That seemed to solve the problem for me. Run this on your terminal:

rm -rf ~/Library/Developer/Xcode/DerivedData/
tf.alves
  • 919
  • 8
  • 15
1

I have experienced a similar issue, with Xcode 8.3, and it was crashing shortly after I began to edit my code in any swift files in my project, editing Objective-C files never caused a crash

There are a few steps that seems to help with fixing the issue:

  1. Quit Xcode
  2. Delete xcuserdata folder (Navigate to your project in Finder, right click on YourProject.xcworkspace, choose Show package contents, then delete xcuserdata folder).
  3. Delete DerivedData

I'm not 100% sure you need to actually quit Xcode before deleting these though.

Community
  • 1
  • 1
arrteme
  • 393
  • 1
  • 3
  • 14
1

crash info

I updated to Xcode 8.3 yesterday. Xcode constantly crashes for no reason. I used a lot of methods including: Unloading reloading Xcode, rm -rf ~/Library/Developer/Xcode/DerivedData/, Shutdown restart mac.

In Xcode8.2 I modified the name of newWeeklyMissionVC.swift to NewWeeklyMissionVC.swift class and in storyboard. So I guess after update Xcode8.3, Xcode can't indexing the storyboard, and cause crash.

So I resolved this by deleting the NewWeeklyMissionVC.swift class in the storyboard and Rewrite it. Now Xcode doesn't crash anymore.

Servy
  • 202,030
  • 26
  • 332
  • 449
romance
  • 15
  • 3
1
  1. Right click project.xcworkspace
  2. Show Package Contents
  3. Delete xcuserdata folder

Then File > Open > project.xcworkspace and project will open perfectly fine.

Zeeshan
  • 4,194
  • 28
  • 32
0

I also had this problem. After installing the pending Mac OS Sierra update, my Xcode is not crashing anymore.

user-123
  • 874
  • 1
  • 13
  • 34
0

I have the same problem. I've notice that if you clean project (CMD + SHIFT + K) Xcode doesn't crash anymore.

0

I started to have same problem when I added Google Maps reference to my Bridging-Header.h file. Once I removed it, it started to work again.

#import <GoogleMaps/GoogleMaps.h>
Marek Buban
  • 55
  • 1
  • 8
0

Try deleting the caches causing the issue rm -rf /Library/Caches/com.apple.xbs/

David
  • 145
  • 3
  • 9
0

I auso had same problem.(with message "Path must be absolute but is not")

In my case, it's caused by ACEDrawingView Pod. When I put "import ACEDrawingView" in a swift file, Xcode crash. Xcode doesn't crash after following step.

  1. Remove ACEDrawingView entry from Podfile
  2. pod update
  3. Download ACEDrawingView source zip from GitHub
  4. Add sources to project, and create Bridge-Haeder.

Regards.

0

I had more or less the same problem except mine crashed after a few seconds. Only for a particular project. The important bit from my crash report was:

"ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/DVTFrameworks/DVTFrameworks-13231/DVTFoundation/FilePaths/DVTFilePath.m:883"

I tried everything i could find online, but after looking around for ages, what seemed to work for me was to open Xcode in a different project(or new project) and switch off the Xcode Source Control. Go to Xcode preferences, then Source Control, and then untick 'Enable Source Control'. Then if necessary try restarting Xcode and possibly your computer.

NNN
  • 543
  • 5
  • 14
0

I had this issue and couldn't open any project. I deleted my derived data and even restarted my mac but it wasn't working.

I ended up creating a new project. Then I was able to switch over to my existing projects.

mfaani
  • 33,269
  • 19
  • 164
  • 293