Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Shayokh144 opened this issue Aug 28, 2023 · 2 comments · Fixed by #544
Open

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

Shayokh144 opened this issue Aug 28, 2023 · 2 comments · Fixed by #544
Assignees

Comments

@Shayokh144
Copy link
Contributor

Shayokh144 commented Aug 28, 2023

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 Shayokh144 added this to the 4.8.0 milestone Aug 28, 2023
@Shayokh144 Shayokh144 self-assigned this Aug 29, 2023
@blyscuit blyscuit removed this from the 4.8.0 milestone Sep 7, 2023
@Shayokh144 Shayokh144 modified the milestone: 4.9.0 Sep 14, 2023
@blyscuit
Copy link
Collaborator

blyscuit commented Oct 4, 2023

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

@Shayokh144
Copy link
Contributor Author

@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

github-merge-queue bot pushed a commit that referenced this issue Dec 4, 2023
[#519] Fix: Test run failed for not finding host application for staging scheme
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants