ios-templates icon indicating copy to clipboard operation
ios-templates copied to clipboard

Fix: Test run failed for not finding host application for staging scheme

Open Shayokh144 opened this issue 1 year ago • 2 comments

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: Screenshot 2023-08-28 at 12 20 00 PM

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.

Screenshot 2023-08-28 at 12 24 02 PM

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.

Screenshot 2023-08-28 at 12 19 25 PM

The expectation is test should run on both scheme and app name should be different for different scheme.

Steps to reproduce

  1. Create project from iOS Template
  2. Change product name in build settings to use xcconfig files PRODUCT_NAME
  3. Run test on TARGET_NAME staging scheme

Shayokh144 avatar Aug 28 '23 05:08 Shayokh144

@Shayokh144 This looks like a feature because we didn't support it before 🤔 Should we change it to feature?

blyscuit avatar Oct 04 '23 06:10 blyscuit

@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

Shayokh144 avatar Nov 17 '23 03:11 Shayokh144