Xcode 7 - 无法打开文档(故事板文件)
Xcode 7 - Cannot open document (storyboard file)
我最近更新到 Xcode 7 和往常一样,一定出了点问题。真的很遗憾,因为我很期待 Xcode 7.
中的新功能
我遇到了一个似乎无法修复的错误。每次我尝试构建项目时,我都会收到以下错误:
我以为我的项目有问题,所以我做了一个新的单视图应用程序,但我仍然得到同样的错误。
我尝试了以下方法,但 none 对我有用:
- 重新启动 Xcode(无效)。
- 清理并重建项目(无效)。
- 重新启动 Mac(无效)。
- 从 Mac App Store 重新安装 Xcode 7(没用)。
- 在另一个 Mac 上安装了 Xcode 7(仍然遇到同样的问题,即使是新的 Xcode 项目)。
- 我尝试了这个 Stack Overflow 问题中的解决方案: - 但是它没有用。
- 最后,我尝试了以下终端命令但无济于事:
$ sudo killall -9 ibtoold
还有其他人在使用 Xcode 7.0 时遇到这个问题吗?如果是这样,您是否设法提出任何其他解决方案?我已经尝试了所有我能想到的方法,但没有任何效果。
最后,下面是错误日志的副本:
2015-09-18 21:09:28.416 ibtoold[1598:39510] [MT] IBPlatformTool: ***
Failed to launch tool with description
System content
1x for IBCocoaTouchFramework-EightAndLater w/ default fidelity: Failed
to find or create execution context for description
System content
1x for IBCocoaTouchFramework-EightAndLater w/ default fidelity: Failed
to find a suitable device for the type SimDeviceType :
com.apple.dt.Xcode.IBSimDeviceType.iPad-1x with runtime SimRuntime :
9.0 (13A340) - com.apple.CoreSimulator.SimRuntime.iOS-9-0 (Failure reason: Failed to create SimDeviceSet at path
/Users/daniel/Library/Developer/Xcode/UserData/IB Support/Simulator
Devices. You'll want to check the logs in ~/Library/Logs/CoreSimulator
to see why creating the SimDeviceSet failed.) 2015-09-18 21:09:38.290
ibtoold[1598:39510] [MT] IBPlatformTool: Wrote failed marshalling
request diagnostics to path:
/var/folders/lx/kkhv57fd2ll7rhdt0bwfpkb00000gn/T/IB-agent-diagnostics_2015-09-18_21-09-28_418000
/* com.apple.ibtool.errors */ /Users/daniel/Desktop/DS
APPS/BT/BloodyTest/BloodyTest/Base.lproj/LaunchScreen.storyboard:
error: Could not open document
Recovery Suggestion: Failed to connect with the iOS agent. Please file a bug report at bugreport.apple.com and attach a zip file of the
diagnostics located at
"/var/folders/lx/kkhv57fd2ll7rhdt0bwfpkb00000gn/T/IB-agent-diagnostics_2015-09-18_21-09-28_418000".
Underlying Errors:
Description: Failed to find or create execution context for description
System content 1x for IBCocoaTouchFramework-EightAndLater w/ default
fidelity
Underlying Errors:
Description: Failed to find a suitable device for the type SimDeviceType : com.apple.dt.Xcode.IBSimDeviceType.iPad-1x with
runtime SimRuntime : 9.0 (13A340) -
com.apple.CoreSimulator.SimRuntime.iOS-9-0
Failure Reason: Failed to create SimDeviceSet at path /Users/daniel/Library/Developer/Xcode/UserData/IB Support/Simulator
Devices. You'll want to check the logs in ~/Library/Logs/CoreSimulator
to see why creating the SimDeviceSet failed.
丹,谢谢你的时间。
非常感谢社区的所有帮助..... 不是。
最后我通过简单地升级到 OS X El Capitan 和 Xcode 7.0.1.
来让它工作
我要指出的一件事是,当我查看 Xcode 应用程序文件时,其中一些已损坏,当我更新到 Xcode 7.0.1 时,这个问题是不固定。所以在安装 OS X El Capitan 之前,我删除了以下内容:
- Xcode 7.0.1 应用
- Library/Developer 文件夹
- Macintosh HD/Library/Developer 文件夹
然后我安装了 OS X El Capitan,然后安装了 Xcode 7.0.1,现在一切正常。
我希望这对遇到同样问题的其他人有所帮助。
我最近更新到 Xcode 7 和往常一样,一定出了点问题。真的很遗憾,因为我很期待 Xcode 7.
中的新功能我遇到了一个似乎无法修复的错误。每次我尝试构建项目时,我都会收到以下错误:
我以为我的项目有问题,所以我做了一个新的单视图应用程序,但我仍然得到同样的错误。
我尝试了以下方法,但 none 对我有用:
- 重新启动 Xcode(无效)。
- 清理并重建项目(无效)。
- 重新启动 Mac(无效)。
- 从 Mac App Store 重新安装 Xcode 7(没用)。
- 在另一个 Mac 上安装了 Xcode 7(仍然遇到同样的问题,即使是新的 Xcode 项目)。
- 我尝试了这个 Stack Overflow 问题中的解决方案: - 但是它没有用。
- 最后,我尝试了以下终端命令但无济于事:
$ sudo killall -9 ibtoold
还有其他人在使用 Xcode 7.0 时遇到这个问题吗?如果是这样,您是否设法提出任何其他解决方案?我已经尝试了所有我能想到的方法,但没有任何效果。
最后,下面是错误日志的副本:
2015-09-18 21:09:28.416 ibtoold[1598:39510] [MT] IBPlatformTool: *** Failed to launch tool with description System content 1x for IBCocoaTouchFramework-EightAndLater w/ default fidelity: Failed to find or create execution context for description System content 1x for IBCocoaTouchFramework-EightAndLater w/ default fidelity: Failed to find a suitable device for the type SimDeviceType : com.apple.dt.Xcode.IBSimDeviceType.iPad-1x with runtime SimRuntime : 9.0 (13A340) - com.apple.CoreSimulator.SimRuntime.iOS-9-0 (Failure reason: Failed to create SimDeviceSet at path /Users/daniel/Library/Developer/Xcode/UserData/IB Support/Simulator Devices. You'll want to check the logs in ~/Library/Logs/CoreSimulator to see why creating the SimDeviceSet failed.) 2015-09-18 21:09:38.290 ibtoold[1598:39510] [MT] IBPlatformTool: Wrote failed marshalling request diagnostics to path: /var/folders/lx/kkhv57fd2ll7rhdt0bwfpkb00000gn/T/IB-agent-diagnostics_2015-09-18_21-09-28_418000 /* com.apple.ibtool.errors */ /Users/daniel/Desktop/DS APPS/BT/BloodyTest/BloodyTest/Base.lproj/LaunchScreen.storyboard: error: Could not open document Recovery Suggestion: Failed to connect with the iOS agent. Please file a bug report at bugreport.apple.com and attach a zip file of the diagnostics located at "/var/folders/lx/kkhv57fd2ll7rhdt0bwfpkb00000gn/T/IB-agent-diagnostics_2015-09-18_21-09-28_418000". Underlying Errors: Description: Failed to find or create execution context for description System content 1x for IBCocoaTouchFramework-EightAndLater w/ default fidelity Underlying Errors: Description: Failed to find a suitable device for the type SimDeviceType : com.apple.dt.Xcode.IBSimDeviceType.iPad-1x with runtime SimRuntime : 9.0 (13A340) - com.apple.CoreSimulator.SimRuntime.iOS-9-0 Failure Reason: Failed to create SimDeviceSet at path /Users/daniel/Library/Developer/Xcode/UserData/IB Support/Simulator Devices. You'll want to check the logs in ~/Library/Logs/CoreSimulator to see why creating the SimDeviceSet failed.
丹,谢谢你的时间。
非常感谢社区的所有帮助..... 不是。
最后我通过简单地升级到 OS X El Capitan 和 Xcode 7.0.1.
来让它工作我要指出的一件事是,当我查看 Xcode 应用程序文件时,其中一些已损坏,当我更新到 Xcode 7.0.1 时,这个问题是不固定。所以在安装 OS X El Capitan 之前,我删除了以下内容:
- Xcode 7.0.1 应用
- Library/Developer 文件夹
- Macintosh HD/Library/Developer 文件夹
然后我安装了 OS X El Capitan,然后安装了 Xcode 7.0.1,现在一切正常。
我希望这对遇到同样问题的其他人有所帮助。