product-name regex fails to match product name in runIOS.js
#13776
Labels
Resolution: Locked
This issue was locked by the bot.
runIOS.js
#13776
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 ofexport FULL_PRODUCT_NAME=Test.app
) is at the end of thebuildOutput
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.
The next screenshot does not have any match because the product name string is not at the end of the line.
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
The text was updated successfully, but these errors were encountered: