IOS .a not linking (SOLVED)

I am working with my native extension, I place my ios library in the lib/ios folder, But when I build the ios bundle, It show me a link error. My lib name did not start with lib, for example, SugramApi.a, When I rename to libSugramApi.a it build successfully.

Yes, different compilers have different default behavior.

Clang and GCC expect the libraries to have the prefix “lib”.

For windows, Cl.exe (and also clang!) expect no prefix.

2 Likes