6

I’m using Xcode 4.6.3 to build a library for OS X. My project includes a target called LibraryTest, which is a command-line app to test the functionality of the library. Both the library and the test app build fine, but when I try to run the app it quits immediately and the debug console shows:

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,
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)

(Line breaks added for readability.) I have the Xcode 5 DP installed, so I tried removing Xcode 4 and reinstalling it from the Mac App Store, but no dice. Deleting DerivedData didn’t help either. Any ideas?

4

3 回答 3

8

重新启动我的 Mac 似乎已经解决了这个问题。

于 2013-07-17T21:21:58.567 回答
4

检查“构建设置”->“配置文件”。它应该是“无”或 Max OSX 的某些配置(如果您正在为应用商店构建)。就我而言,它错误地具有“iOS Ad Hoc Provisioning Profile”。这为我解决了这个问题。


注意:我通过检查系统日志(终端中的“cat -f /var/log/system.log”,然后启动应用程序)发现了这一点。它编写了一份崩溃报告,其中包含“...嵌入式配置文件无效:...”等。检查应用程序容器本身确实显示了一个“embedded.provisionprofile”文件,这促使我检查它的构建设置。

于 2014-06-18T10:54:56.070 回答
0

我通过更新iOS解决了它。我使用的是 JailBreak iOS 版本。

于 2014-05-25T08:35:49.813 回答