问题
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