FS.O6
FS.O6

Reputation: 1464

Xcode crashing on a specific project

When I'm trying to open a specific project on Xcode it's crashing with this error message (part of it):

Process:               Xcode [729]
Path:                  /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier:            com.apple.dt.Xcode
Version:               8.1 (11544)
Build Info:            IDEFrameworks-11544000000000000~4
App Item ID:           497799835
App External ID:       819397000
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           Xcode [729]
User ID:               501

Date/Time:             2016-11-06 18:39:39.261 +0200
OS Version:            Mac OS X 10.12.1 (16B2555)
Report Version:        12
Anonymous UUID:        E3BEFD49-5451-DC5B-81D3-2BD8B1F4987F


Time Awake Since Boot: 140 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:
ProductBuildVersion: 8B62
UNCAUGHT EXCEPTION (NSRangeException): *** -[__NSArrayM objectAtIndex:]: index 5 beyond bounds [0 .. 4]
UserInfo: (null)
Hints: 

When I try to open another project everything is fine, it's just this specific project.

I've tried to restart my Mac and it still crashes.

enter image description here

Anyone know how to fix this?

Thanks!

Upvotes: 9

Views: 11743

Answers (5)

Omer
Omer

Reputation: 882

To fix this problem:

open a Finder window and navigate to your project right-click on the .xcodeproj file (it’s a package actually) select Show Package Contents a new window appears delete a folder called xcuserdata Now open your project again in Xcode and it should work. Your workspace will be reset, bringing a very small amount of happiness and tranquility back into your life.

Upvotes: 7

Krunal Nagvadia
Krunal Nagvadia

Reputation: 1162

Nothing work for me. I delete my .xcworkspace and regenerate .xcworkspace by pod install and work for me.

Upvotes: 15

rptwsthi
rptwsthi

Reputation: 10182

In my case, it was resolved by:

"I was able to get unblocked by deleting project.xcworkspace/xcuserdata in my project"

Detailed discussion here: https://www.reddit.com/r/iOSProgramming/comments/7zh9wg/xcode_crashes_on_startup/?utm_source=share&utm_medium=web2x

Upvotes: 4

Lucas Crostarosa
Lucas Crostarosa

Reputation: 1192

So I know this is a bit of a dated question but I just spent half my afternoon with the same issue in 9.1.... Basically if you have icloud drive enabled on your computer, you will wreck havok on xcode...not sure why / how but it just does....I moved all of my dev projects out of documents and it now works beautifully. Cheers and good luck

Upvotes: 0

Annie Gupta
Annie Gupta

Reputation: 2822

Do one thing, clear off/delete all the derived data for Xcode and then open your project. That should fix the issue.

Also to report a bug to Apple you can simply go to https://bugreporter.apple.com/ and login with apple credentials and and they'd get back to you in like couple of days.

Also for derived data do the following: You can go to File > Workspace Settings if you are in a workspace environment or File > Project Settings for a regular project environment.

Then click over the little grey arrow under Derived data section and select your project folder to delete it.

Upvotes: 35

Related Questions