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!
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.
Nothing work for me. I delete my .xcworkspace
and regenerate .xcworkspace
by pod install
and work for me.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With