我正在使用
Xcode 4.6.3为OS X构建一个库.我的项目包含一个名为LibraryTest的目标,它是一个用于测试库功能的命令行应用程序.库和测试应用程序都可以正常构建,但是当我尝试运行应用程序时,它立即退出并且调试控制台显示:
error: Failed to launch '/Users/bdesham/Library/Developer/Xcode/DerivedData/Wavelength_and_Spectrum_Library-byosniusyaoidgdcpzwzuzkitzgv/Build/Products/Debug/LibraryTest' -- error: Host::LaunchProcess (launch_info) => pid=0,path='/Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Versions/A/Resources/debugserver' err = error: ::posix_spawnp ( pid => 98649,path = '/Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Versions/A/Resources/debugserver',file_actions = 0x10b09e268,attr = 0x10b09e2a0,argv = 0x7fe2701377e0,envp = 0x0 ) err = Bad file descriptor (0x00000009) (0x00000009) error: Failed to launch '/Users/bdesham/Library/Developer/Xcode/DerivedData/Wavelength_and_Spectrum_Library-byosniusyaoidgdcpzwzuzkitzgv/Build/Products/Debug/LibraryTest' -- error: Host::LaunchProcess (launch_info) => pid=0,envp = 0x0 ) err = Bad file descriptor (0x00000009) (0x00000009)
(为了便于阅读,添加了换行符.)我安装了Xcode 5 DP,因此我尝试删除Xcode 4并从Mac App Store重新安装,但没有骰子.删除DerivedData也没有帮助.有任何想法吗?
解决方法
重启我的Mac似乎解决了这个问题.