MichaelHackett / Kiwi

BDD for iOS
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Replacing ":" with "\uff1a" in failure messages to keep Xcode from truncating the error message. #10

Open MichaelHackett opened 10 years ago

MichaelHackett commented 10 years ago

First verify that this is still an issue in Xcode 5 (and 6?), but it may still be useful for those still using 4 (anyone but me?).

Xcode (is it the Issues Navigator and/or Log Navigator) truncates or breaks up error messages at the first colon, it seems. However, the Unicode character \uff1a, which looks the same, is not so treated. So something like the following might work:

[failureMessage stringByReplacingOccurrencesOfString:@":" withString:@"\uff1a"];