Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode crashing on a specific project

Tags:

xcode

xcode8

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!

like image 333
FS.O6 Avatar asked Nov 06 '16 16:11

FS.O6


4 Answers

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.

like image 166
Omer Avatar answered Nov 20 '22 18:11

Omer


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

like image 33
Krunal Nagvadia Avatar answered Nov 20 '22 20:11

Krunal Nagvadia


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.

like image 34
Annie Gupta Avatar answered Nov 20 '22 18:11

Annie Gupta


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

like image 4
rptwsthi Avatar answered Nov 20 '22 19:11

rptwsthi