Xcode 5 测试未运行 [英] Xcode 5 Tests Not Running

查看:30
本文介绍了Xcode 5 测试未运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试运行测试时,我从 Xcode 收到以下消息:

I get the following message from Xcode when I try to run my tests:

2013-11-13 09:02:57.849 MyProject[378:303] Error loading /Users/tatami/Library/Developer/Xcode/DerivedData/MyProject-gcralijdlibafgeyfwfeiynnothy/Build/Products/Debug/MyProjectTests.xctest/Contents/MacOS/MyProjectTests:  dlopen(/Users/tatami/Library/Developer/Xcode/DerivedData/MyProject-gcralijdlibafgeyfwfeiynnothy/Build/Products/Debug/MyProjectTests.xctest/Contents/MacOS/MyProjectTests, 262): no suitable image found.  Did find:
/Users/tatami/Library/Developer/Xcode/DerivedData/MyProject-gcralijdlibafgeyfwfeiynnothy/Build/Products/Debug/MyProjectTests.xctest/Contents/MacOS/MyProjectTests: open() failed with errno=1
IDEBundleInjection.c: Error loading bundle '/Users/tatami/Library/Developer/Xcode/DerivedData/MyProject-gcralijdlibafgeyfwfeiynnothy/Build/Products/Debug/MyProjectTests.xctest'

这里已经问过这个问题:Xcode 5 抛出库未加载";添加测试目标时出错但该解决方案不适用于我,因为这是一个 Mac 应用程序.有什么想法吗?

This question has already been asked here: Xcode 5 throws "Library not loaded" error when adding a test target but the solution doesn't apply to me as this is a Mac app. Any ideas?

推荐答案

您是否在 Capabilities 下为您的目标启用了 App Sandbox?关闭它对我有用.

Do you have App Sandbox under Capabilities for your target enabled? Switching that off worked for me.

这篇关于Xcode 5 测试未运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆