Xcode crashing on a specific project

2019-04-23 18:58发布

问题:

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.

Anyone know how to fix this?

Thanks!

回答1:

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.



回答2:

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



标签: xcode xcode8