robovm/robovm — pull request #516 by assisstion (2014-09-29 22:34:52+00:00)
Title: Continue loop in SigningIdentity

Operating System: Mac OS X 10.9+

I tried using command line to compile my robovm project, but it threw a fatal error during compilation, stating that "No signing identity found matching 'iPhone Developer'". Upon further investigation, I discovered that the expected command line output of the program differed from the actual output; the actual output contains lines before it stating "Valid identities only", etc, that did not match the Pattern's regex, causing the for loop to break. To fix the problem, I tried changing the break statement in the for loop to a continue statement to allow the input to real each line, even after encountering a line that did not match the the Pattern's regex. This causes the loop to continue searching through the entire terminal output. Doing this allows the robovm project to compile properly.

Solution:
If the matcher cannot find the pattern in the given line, continue the loop to search for more lines instead of breaking, as some console outputs include other lines at the beginning, which causes the loop to break, unable to find any Valid identities. Tested on Mac OS X.