Installing AppKit on macOS (Sequoia)

Introduction

This manual was written as of January 2025. The instructions work as of macOS version 15.1.1(24B91) and Python version 3.13.1.

Prerequisites

  • Brew
  • Python 3
  • macOS
    • Some version of macOS lower than 14 may work, but keep in mind that anything before 13 is end of life.

Instructions

  1. Install PyGObject using brew with : brew install pygobject3
  2. Install cmake: brew install cmake
  3. Install libff: brew install libffi
  4. Tell cmake where libffi is:
    export CFLAGS="-I$(brew --prefix libffi)/include"
    export LDFLAGS="-L$(brew --prefix libffi)/lib"   
    
  5. Install pyobjc using pip with : pip install pyobjc
  6. Install AppKit using pip : pip install AppKit

Conclusion

That’s it! Maybe I already had some packages already installed that are also necessary but I wouldn’t be able to figure that out on my own. If you have anything to add to these instructions, then please send me an email at [email protected].