Since iOS is largely based on the same frameworks as macOS, the changes required to support iOS are minor. It does, however, lack some time-related methods, most notably CoreAudio/HostTime.h and the suggested approach appears to be using mach time instead: https://developer.apple.com/library/archive/qa/qa1643/_index.html
With this PR portmidi can now be built for iOS simply by changing the CMAKE_SYSTEM_NAME:
Since iOS is largely based on the same frameworks as macOS, the changes required to support iOS are minor. It does, however, lack some time-related methods, most notably
CoreAudio/HostTime.h
and the suggested approach appears to be using mach time instead: https://developer.apple.com/library/archive/qa/qa1643/_index.htmlWith this PR
portmidi
can now be built for iOS simply by changing theCMAKE_SYSTEM_NAME
: