简体   繁体   中英

All xib and storyboard files crashes Xcode 6.1

I am having a really difficult problem and have no idea how to fix it. I have a workspace with 3 projects and whatever xib or storyboard file I choose from these, Xcode always crashes, saying (Xcode quit unexpectedly). Also, if I create a brand new project within the workspace, these storyboard also crashes xcode when opening (but project can be built and runs fine, except you cannot open layout files). What could possibly create such an affect? Is the problem in my .xcodeproj file? The project worked yesterday, and I have not performed any change that I can remember.

If I build the project without selecting any xib or storyboard file I receive the following very cryptic error:

Command /Applications/Xcode.app/Contents/Developer/
Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1 

Similar to this one: swift failed with exit code 1 while compiling in Xcode - possibly related to Bridging-Headers

Have tested all the answers, on both XCode 6.1 and 6.1.1 (Have tested to delete xcuserdata and DerivedData). If i build using the console, in the end I get this "very" helpful error.

Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
** BUILD FAILED **

I guess nobody has a complete solution for this problem, but could you help me on where to look? .xcodeproj file? Or could a error in one xib file prevent others from opening?

Ok, this was some sort of xCode bug. One of my swift files was corrupt somehow, and the fix was simply deleting it and copying the old content to the new file. Very strange that one SWIFT (!) file could prevent all xib and storyboard files from opening.

My recommendation to anyone having the similar problem is to backup your old project and remove files until xCode works. Then you have identified the problem, and should be able to fix it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM