Xcode quits unexpectedly every time I open my project

前端 未结 15 1296
傲寒
傲寒 2020-11-27 05:51

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

相关标签:
15条回答
  • 2020-11-27 05:55

    you can run XcodeSystemResources.pkg.

    /Applications/Xcode.app/Contents/Resources/Packages/XcodeSystemResources.pkg.
    

    I hope help to you

    0 讨论(0)
  • 2020-11-27 05:55

    I am using CocoaPod (XCode 8.2), these steps solved my issue:

    1. Go to project folder
    2. Open package contents of .xcworkspace
    3. Delete xcuserdata in package contents
    4. Remove it from Trash (optional)
    5. Go back and open .xcworkspace (XCode will prompt to reopen, but don't do this)
    6. Continue with your project :)
    0 讨论(0)
  • 2020-11-27 05:56

    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

    0 讨论(0)
  • 2020-11-27 05:58

    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.

    cleaning an xcodeproj package

    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.

    0 讨论(0)
  • 2020-11-27 05:58

    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.

    0 讨论(0)
  • 2020-11-27 06:01
    1. Delete Project.xcworkspace first.
    2. Open Terminal
    3. Go to application folder
    4. Run command pod install
    5. Delete Derived Data
    6. Open Project.xcworkspace

    It works for me.

    0 讨论(0)
提交回复
热议问题