Xcode 5--bundle_loader仅可与-bundle XCTest一起使用 [英] Xcode 5 - -bundle_loader can only be used with -bundle XCTest

查看:89
本文介绍了Xcode 5--bundle_loader仅可与-bundle XCTest一起使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用XCTest和Xcode 5进行单元测试.一切都工作得很好,但是随后一位同事做出了努力,并且似乎已经破坏了它.

I am working on unit tests with XCTest and Xcode 5. Everything was working just fine, but then a colleague made a push, and it seems to have broken it.

我已经执行以下操作:

BUNDLE_LOADER = $(BUILT_PRODUCTS_DIR)/app name.app/app

BUNDLE_LOADER = $(BUILT_PRODUCTS_DIR)/app name.app/app

TEST_HOST = $(BUNDLE_LOADER)

TEST_HOST = $(BUNDLE_LOADER)

我一直在不停地尝试构建路径.

and I have played around with the build paths endlessly.

这是我遇到的错误,与Linker-O错误有关.

Here is the error I am getting, which is tied to a Linker-O error.

-bundle_loader仅可与-bundle一起使用

-bundle_loader can only be used with -bundle

有人知道如何解决这个问题吗?

Anyone know how to fix this?

推荐答案

测试目标中的Mach-O Linker标志设置为可执行",而不是捆绑销售".

The Mach-O Linker flag in the test target was set to "executable" instead of "bundle".

这篇关于Xcode 5--bundle_loader仅可与-bundle XCTest一起使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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