How to convert an NSData into an NSString Hex string?

Keep in mind that any String(format: …) solution will be terribly slow (for large data) NSData *data = …; NSUInteger capacity = data.length * 2; NSMutableString *sbuf = [NSMutableString stringWithCapacity:capacity]; const unsigned char *buf = data.bytes; NSInteger i; for (i=0; i<data.length; ++i) { [sbuf appendFormat:@”%02X”, (NSUInteger)buf[i]]; } If you need something more performant try this: …

Read more

Big Sur clang “invalid version” error due to MACOSX_DEPLOYMENT_TARGET

I would like to extend @Felipe excellent answer; if it doesn’t work even with running >>> softwareupdate –all –install –force Software Update Tool Finding available software No updates are available. …following the wisdom of the “homebrew doctor” solves it, i.e. remove and reinstall: sudo rm -rf /Library/Developer/CommandLineTools sudo xcode-select –install

SHA1 Key for DEBUG & RELEASE ANDROID STUDIO MAC , How to generate SHA1 Release Keys in Mac?

DEBUG: Click on the Gradle tab on the right hand side of the view. Go to the ROOT folder -> Tasks -> android -> signingReport Double click, this will build with the signingReport and post in your bottom view your SHA1. RELEASE: In android studio. Build -> Generate Signed APK… and click Next Copy your …

Read more

results grid not showing on mysql workbench 6.3.9 for macOS sierra

Good News! 😃 Apparently this is a widespread bug on macOS High Sierra that was fixed in version 6.3.10 that was released Nov. 15th 2017. They fixed it as described in the release notes: https://dev.mysql.com/doc/relnotes/workbench/en/wb-news-6-3-10.html Executing a query in MySQL Workbench on a host running macOS High Sierra failed to load the result grid completely, …

Read more