XCTest does not link iOS frameworks
The test target needs to be able to look for frameworks in the built product of MyApp. You should add a framework search path to the test target:
$(CONFIGURATION_TEMP_DIR)/MyApp.build/DerivedSources
The test target needs to be able to look for frameworks in the built product of MyApp. You should add a framework search path to the test target:
$(CONFIGURATION_TEMP_DIR)/MyApp.build/DerivedSources