• Stars
    star
    233
  • Rank 172,230 (Top 4 %)
  • Language
    Swift
  • License
    Apache License 2.0
  • Created about 4 years ago
  • Updated about 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A tiny macOS app that can detect the GUI technologies used in other apps.

The 5 GUIs Application

... the app for the tweet:

With its eclectic mix of AppKit, Catalyst, iOS, SwiftUI, and web apps, macOS should consider rebranding to β€œFive GUIs”

β€” Joe Groff (@jckarter) September 28, 2020

GUI is an abbreviation for Graphical User Interface.

How it works

5 GUIs first grabs some information from the app bundle. It then uses LLVM's objdump to check what libraries the app links, e.g. Electron or UIKit, to figure out what technology is being used.

5 GUIs itself is a SwiftUI 1 macOS application (i.e. it runs on Catalina and macOS BS).

Idea and Implementation

The idea for this kind of app exists for quite some time, but when @jckarter tweeted the proper name for this: β€œ5 GUIs”, it finally had to be done.

This is a quick hack, put together in about 2 days. The source is not β€œnice” at all, don't use it as a proper example πŸ™ˆ PRs with cleanups are warmly welcome.

Help wanted!

All improvements are very welcome, but most of all this app could use better design. SwiftUI gives you something OKayish looking out of the box, but if someone has the time to add some fancy animations, better colors, iconography and styling, that would be very welcome!

Also checkout the Issues page of this repository. It'll have some.

3rd Party Software Used

Building the Project in Xcode

Before the app can be build, an llvm-objdump binary needs to be put into the LLVM folder (the binary was a little big for inclusion in the repository).

For testing purposes the one included in Xcode should be fine, it should be living over here: /Applications/Xcode.app//Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/llvm-objdump.

For deployment it is probably better to build an own one. To do so:

  • grab the LLVM source code from the downloads page
  • Unpack it somewhere, e.g.: cd /tmp; && tar zxf llvm-10.0.1.src.tar.xz
  • Create a build dir: mkdir /tmp/build-dir && cd /tmp/build-dir
  • Create the makefiles: cmake ../llvm-10.0.1.src/
  • Build it: cd tools/llvm-objdump && cmake --build .

Who

5 GUIs is brought to you by ZeeZide. We like feedback, GitHub stars, cool contract work, presumably any form of praise you can think of.