I found the root cause and solution to this problem. The issue was with the naming convention of the static library inside the xcframework.
Rename the static library from AnotherLibrary.a
to libAnotherLibrary.a
solved the issue.
The "lib" prefix is the standard naming convention for static libraries, and Xcode's linker expects this format to properly resolve and link the library.