#include <sys/ucontext.h>
in this header defined ucontext related type and function(such as ucontext_t, getcontext, makecontext, and swapcontext). It works fine in rosetta mode, but failed on native arm, cause the swap param's address is wrong. I confirmed it by using an open source developed for iOS(https://github.com/MCApollo/libucontext-ios-arm64) support functions. Hope this bug can be fixed in future, cause a lot of unix type open source depend on it, and may cause m1 native version adapt slow.
Hope this bug can be fixed in future
If your goal is to report a bug, I recommend that you follow the instructions in this post.
Please post your bug number, just for the record.
It would help if you included more details than you included in this post. You could, perhaps, include a small test project that reproduces the issue. Reading through this post, I’ve no idea what you’re actual issue is )-:
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"