11

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.

I have done the following:

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

TEST_HOST = $(BUNDLE_LOADER)

and I have played around with the build paths endlessly.

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

-bundle_loader can only be used with -bundle

Anyone know how to fix this?

4

1 回答 1

24

测试目标中的 Mach-O 链接器标志设置为“可执行”而不是“捆绑”。

于 2013-10-11T19:30:07.093 回答