ios-templates
ios-templates copied to clipboard
Fix: Test run failed for not finding host application for staging scheme
Issue
Test run failed for not finding host application for staging scheme
Expected
Our template used different product name for different configurations. For example:
DebugProduction contains: PRODUCT_NAME = $(TARGET_NAME)
DebugStaging contains: PRODUCT_NAME = $(TARGET_NAME) Staging
Sometime for getting different app name for different scheme we set product name
in build settings
using PRODUCT_NAME
from configuration files like this:
As a result when we run TARGET_NAME
scheme the app name in iPhone shows TARGET_NAME
and when we run TARGET_NAME staging
scheme the app name in iPhone shows TARGET_NAME staging
as app name.
But when we run test for TARGET_NAME Staging
scheme, the test run throws an error because the product name and target name is different.
The expectation is test should run on both scheme and app name should be different for different scheme.
Steps to reproduce
- Create project from iOS Template
- Change
product name
in build settings to use xcconfig filesPRODUCT_NAME
- Run test on
TARGET_NAME staging
scheme
@Shayokh144 This looks like a feature because we didn't support it before 🤔 Should we change it to feature
?
@Shayokh144 This looks like a feature because we didn't support it before 🤔 Should we change it to
feature
?
I think it's a bug, as we have used different PRODUCT_NAME
and add it as CFBundleName
value but it doesn't show different names when we run the app, for trying to fix this also create bug not finding host application