How strange. I ran into the same problem as described above and I also use the else clause.
In addition, I tried the double-logging method, as described above, the same way as before my if goes to the log or fails:
UIALogger.logMessage("My Story Title: " + titleDisplayed); UIALogger.logMessage("Innocuous Message.");
And I got FAIL, which is good - I wanted nothing but the result of " Issue " and the message " script ended without expliciting ". So, I then commented // on the second logMessage and repeated the test, and this time got the β Issue β and β script ended without explicating β again.
So, its top tip has been tested as real.
I am running Xcode and Instruments version 4.6 with an iPhone emulator working as project 6.1.
--- Update -
I canβt get a pass / not work properly no matter what I do. On one run, I get the outrageous " Issue: Script ended without explicating " message in my journal, and then if I make any changes to the script - even if it just adds extra spaces and saves it, and then runs again - I will get good pass or result of failure.
But if I immediately run the test again without any changes, I will get the message β Issue: Script ended without explicating β, and this will not disappear until I make a meaningless change in the script and save, and then run again, and then MAYBE at that moment I could get a decent result / failure (it doesnβt always happen), but if I run the script again, I will get " Issue: Script ended without explicating " again.
What the hell? I really took the time to reinstall Xcode 4.6, but no luck in changing the behavior. I am deeply upset. This seems to be a bug in the Tools. Is there any way to report this to Apple?