With binaries built using XCode 13.1 and executing on Monterey 12.0.1
When i load a dylib I get following error: dlopen failed for DYLIB: (/Library/Application Support/Test/cor.dylib) Error:(dlopen(/Library/Application Support/Test/cor.dylib, 0x0006): tried: '/Library/Application Support/Test/cor.dylib' (slice is not page aligned, fat file, but missing compatible architecture (have 'x86_64,arm64', need 'x86_64h'))).
This is seen when I sign the binary. Same binary which is unsgined works properly.
Both the loader binary and the dylib are built using Standard Architecture (universal). So i am clueleses what might be the error.