Skip to content

product-name regex fails to match product name in runIOS.js #13776

@chris-yoon90

Description

@chris-yoon90

Description

The product-name regex in local-cli/runIOS/runIOS.js line 160 fails to match the product name. This is probably because there is a $ to match the end of the string, but there is no guarantee that the product name string (which is in format of export FULL_PRODUCT_NAME=Test.app) is at the end of the buildOutput string.

Referencing pull-request: #13001, as it seems relevant to this issue.

Reproduction Steps and Sample Code

Please refer to the below screenshot. Below shows that the regex matches when the product name string is at the end of the line.

screen shot 2017-05-04 at 2 47 26 am

The next screenshot does not have any match because the product name string is not at the end of the line.

screen shot 2017-05-04 at 2 46 57 am

Solution

Fix the regex so that it doesn't assume that the product-name string is at the end of the buildOutput string.

Additional Information

  • React Native version: 0.44.0
  • Platform: iOS
  • Development Operating System: MacOS
  • Dev tools: iOS simulator

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions