Xcode 5 - -bundle_loader can only be used with -bundle XCTest

放肆的年华 提交于 2020-01-20 04:05:49

问题


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?


回答1:


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



来源:https://stackoverflow.com/questions/19321771/xcode-5-bundle-loader-can-only-be-used-with-bundle-xctest

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!