Xcode quits unexpectedly every time I open my project
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",when i click reopen it will open xcode window and again automatically it will close and showing the same warning.
Why this is happening am not getting am a newbie,if anyone having idea on this plz help me out. if i open any other projects then its opening no issues...issue is with my Current App.
versions :
xcode is 4.3.1
mac OS X version is 10.7.3
Please tell me why its happening like this.
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.
Deleting Derived Data worked for me. Just open another project or open xcode without opening your corrupted project. Than open preferences and go locations tab at the end. Click gray circle with arrow (where all your projects derived data are saved.)
Delete your corrupted project's derived data in there and you are good to go.
you can run XcodeSystemResources.pkg.
/Applications/Xcode.app/Contents/Resources/Packages/XcodeSystemResources.pkg.
I hope help to you
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
go to [ProjectName].xcworkspace file.Right click. Show package contents. Delete xcuserdata folder. After deleting, run the project it will work for sure.