I am just opening my xcode , when i open my current project its showing the warning like \"xcode quit unexpectedly \" with 3 options \"Ignore\",\"Report\" and \"Reopen\",whe
you can run XcodeSystemResources.pkg.
/Applications/Xcode.app/Contents/Resources/Packages/XcodeSystemResources.pkg.
I hope help to you
I am using CocoaPod (XCode 8.2), these steps solved my issue:
I would recommend opening the terminal and copying in the following:
rm -rf ~/Library/Developer/Xcode/DerivedData
Note: credit to zirinisp for providing the answer that worked for me
Xcode stores some user state information inside the Xcode project “file”, which is really a folder. That state information might have become corrupted. You can normally throw away everything inside your .xcodeproj
folder except the project.pbxproj
file. This might fix your problem.
Open up the folder containing your .xcodeproj
file. Right-click or control-click the .xcodeproj
file and choose “Show Package Contents”. Then throw away everything except the project.pbxproj
file.
If you know what an Xcode workspace is, and you're actually making use of it, you might not have a project.xcworkspace
file to throw away, or you might not want to throw it away. But if you don't know what an Xcode workspace is, then you're not using it so you can just throw away project.xcworkspace
. Xcode will recreate it automatically.
I am using CocoaPods, and followed Rob's Instruction on the .xcworkspace file as indicated above by Allecto. After I "showed Package Contents" on the .xcworkspace file, the only thing I did was to rename the xcuserdata folder to xcuserdataCrashApril2. I was then able to open the project (workspace) with no problems. The only difference is xcode did not save the state of which .swift source code files were previously opened (which is not a big issue for me).
I suppose I can delete the xcuserdataCrashApril2 file, but I am keeping it out there as a reminder of what to do the next time this happens.
It works for me.