My app is crashing in Xcode 7.0 beta 6 when I run it in the simulator with following error message:
Xcode quit unexpectedly.
Click Reopen to open the application again. Click Report to see more detailed information and send a report to Apple.
Here is my crash report:
Things I noticed:
- The crash happens 100% of the time so I am unable to run my app in the simulator or execute unit tests.
- Same app does NOT crash on a different computer running identical OS X and Xcode versions.
- A different app did not crash.
What I tried so far:
- Reinstalling Xcode.
- Reseting content and settings of the simulator.
- Clearing
~/Library/Developer/Xcode/DerivedData
and~/Library/Caches/com.apple.dt.Xcode/
directories. - Deleting and adding the simulator from Window > Devices.
- Xcdode > Preferences > Source Control > Uncheck the Enable Source control.
- Selecting "Command line tools" version from Preferences > Locations.
- Restarting my computer.
I did submit a bug report to Apple.
Xcode Version 7.0 beta 6 (7A192o) OS X Version 10.10.5 (14F27)
Mystery solved
I found out the source of the problem. I am using Carthage to build frameworks. To solve this problem I needed to run carthage update
. I think that last time I did that I did not commit the built framework files from Carthage/Build directory. And maybe when I installed newer Xcode version it caused the problem with the framework files there were built using previous command line tools.