Reputation: 69747
I'm getting this message during run in Xcode 8.
Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatiblity mapping behavior in the near future.
How can I track this down? I cannot find 0x8000100
anywhere in my project.
Upvotes: 2
Views: 2675
Reputation: 69747
The incorrect encoding value -- 0x8000100
-- is in kCFStringEncodingUTF8
which is defined on CFString.h
.
In my code I had this line:
[NSString stringWithCString:cString encoding:kCFStringEncodingUTF8];
which caused the error. Instead use this from now on:
[NSString stringWithCString:cString encoding:NSUTF8StringEncoding];
Upvotes: 9