CocoaPods trunk is moving to be read-only. Read more on the blog, there are 18 months to go.
TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Nov 2015 |
Maintained by Xaree Lee.
This source is an aspect patch using XAspect. You can install this via CocoaPods.
pod 'XAspect-Foundation_UnicodifyingDescriptionsOfObjects'
or dragging files in AspectFiles/
into your project manually.
This aspect change the descriptions of some foundation objects to print correctly in ASL (Apple System Logger):
:
), not equal sign (=
).,
), not semicolon (;
).null
, not <null>
.There is a problem if you want to log some NSFoundation objects in ASL (Apple System Logger). For example, if your dictionary containing Unicode strings:
NSDictionary *dict = @{@"如果你不愛我":@"我會讓你走",
@"如果你真心愛我":@"我會讓你擁有全世界"};
NSLog(@"dict: %@", dict);
the results in the Xcode console would be:
{
"\U5982\U679c\U4f60\U4e0d\U611b\U6211" = "\U6211\U6703\U8b93\U4f60\U8d70";
"\U5982\U679c\U4f60\U771f\U5fc3\U611b\U6211" = "\U6211\U6703\U8b93\U4f60\U64c1\U6709\U5168\U4e16\U754c";
}
With this aspect patch, the string objects will be embraced by ""
and be printed correctly using Unicode:
{
"如果你真心愛我" : "我會讓你擁有全世界",
"如果你不愛我" : "我會讓你走"
}