Yosemite 下的 Xcode 6 崩溃

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/25904414/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 05:35:58  来源:igfitidea点击:

Xcode 6 under yosemite crash

iosiphonexcodexcode6osx-yosemite-beta

提问by Oleg Sherman

When i try to run any project on any DEVICE (not simulator) on any iOS in Xcode 6 (any version including 6.0.1 and all betas) under yosemite Xcode crashes right after "Build succeeded". the log shows:

当我尝试在 Xcode 6(任何版本,包括 6.0.1 和所有 Beta 版)的任何 iOS 上的任何设备(不是模拟器)上运行任何项目时,在“构建成功”之后,yosemite Xcode 立即崩溃。日志显示:

Application Specific Information:

ProductBuildVersion: 6A317

ASSERTION FAILURE in /SourceCache/DVTFrameworks/DVTFrameworks-6528/DVTFoundation/FilePaths/DVTFilePath.m:802

Details: fsrep is relative ('???-??/????,?var/folders/dv/c6tb8vv93tj99rmr6t85znt80000gn/C???-??/????,??/?com.apple.DeveloperTools/6.0.1?/?Xcode') 

parentPath must not be nil but it is.

Object: <DVTFilePath>

Method:+_filePathForParent:fileSystemRepresentation:length:allowCreation:

Thread: <NSThread: 0x7fd923ee3000> {number = 20, name = (null)}

Hints:None

I tried to delete the com.apple.dt.Xcode.plist & reinstall Xcode but it keeps crashing on devices, On simulator it works.

我试图删除 com.apple.dt.Xcode.plist 并重新安装 Xcode,但它一直在设备上崩溃,在模拟器上它可以工作。

Help please.

请帮忙。

采纳答案by Lukasz Rutkowski

The solution for me was to remove Urdu language from the list (System preferences>Language and Region). It was set as primary. I kept only English and after restarting Xcode is not crashing anymore.

我的解决方案是从列表中删除乌尔都语(系统首选项>语言和地区)。它被设置为主要的。我只保留了英语,重新启动 Xcode 后不再崩溃。

回答by powertoold

Try to exit fullscreen mode in Xcode and run your app again. It was crashing for me when Xcode was in fullscreen mode.

尝试在 Xcode 中退出全屏模式并再次运行您的应用程序。当 Xcode 处于全屏模式时,它对我来说崩溃了。

This is Xcode 6.0 with OS X Yosemite.

这是带有 OS X Yosemite 的 Xcode 6.0。

回答by davidcondrey

It seems a lot of people are having trouble with Xcode 6 and Yosemite but are reporting that the new Xcode beta is resolving the issues. Xcode 6.1 beta 2 just came out a couple days ago so perhaps you should try that if you haven't already.

似乎很多人都在使用 Xcode 6 和 Yosemite 时遇到了问题,但他们报告说新的 Xcode 测试版正在解决这些问题。Xcode 6.1 beta 2 几天前刚刚发布,所以如果您还没有的话,也许您应该尝试一下。

Remove your current version of Xcode and it may also help to delete the AppleMobileDevice.kextfile in /System/Library/Extensionsas well as AppleMobileDeviceSupport.pkgin /Library/Receipts/and then download and use the Xcode 6.1 beta 2

删除当前的Xcode的版本,它也可以帮助删除该AppleMobileDevice.kext文件中/System/Library/Extensions,以及AppleMobileDeviceSupport.pkg/Library/Receipts/,然后下载并使用的Xcode 6.1测试版2



If you read the error it says that the path is being read as nil because it's got those unusual characters ???-??/???.. Track down the cache files for this reference and delete them.

如果你读到错误,它说路径被读为 nil 因为它有那些不寻常的字符???-??/???.. 跟踪这个参考的缓存文件并删除它们。