I'm trying to get my macOS app running natively on the Apple Silicon DTK and it's going fine so far. Unfortunately it makes use of a third party library which isn't (and probably won't ever be) available in form of a Universal Binary. This should be no problem, though, because I've been using that library via XPC before and the documentation clearly states that mixed architectures are supported as long as they are out-of-process.
So I went ahead and configured Xcode's build settings as follows for the x86-only XPC target:
The main app and also the XPC compile fine. But when running the app it fails to launch the XPC with the following error in the console:
Does anyone know what's going on here?
So I went ahead and configured Xcode's build settings as follows for the x86-only XPC target:
Code Block ARCHS: x86_64 VALID_ARCHS: x86_64
The main app and also the XPC compile fine. But when running the app it fails to launch the XPC with the following error in the console:
Code Block oah error: /var/db/oah/e089a6709d38c1a085254c76a7cb592fcceddb3f234a4aa318bb4ec25fe40d27/a37f39d2b061393d7731233ae89d90cd87c97f4edeeb46a78ad791/ c43ac96d2b/my.xpcBundleID.aot: unable to mmap __TEXT: 1
Does anyone know what's going on here?