Dyld Error Message:
Symbol not found: _clock_getres
Referenced from: /work/*/mono
Expected in: /usr/lib/libSystem.B.dylib
because apparently macOS 10.12 has implemented clock_getres now, and we enter this: https://github.com/mono/mono/blob/master/mono/utils/mono-time.c#L150, but that obviously doesn't execute on older OSXes.
This might be a bug in Apple's headers, which don't hide the symbol when targeting an earlier macOS: https://gist.github.com/rolfbjarne/b2160f954f8b6ab1debd7c1ec22e9851
I sent a PR which should workaround this: https://github.com/mono/mono/pull/3165
Committed to master and 4.5.1.
@Rolf: can you please file a radar with Apple so that they can fix this?
radar filed: https://trello.com/c/kYaYwUw1/46-26940298-usage-of-clock-getres-will-compile-even-if-min-osx-version-is-set-to-macos-version-earlier-than-when-it-was-introduced