Compilation fails cordova ios plugin with static library .a

Hi, the compilation fails when it tries to load the .a library, error:

:x: unknown file type in ‘/Users/xxxxxx-team/builds/project-0/platforms/ios/xxxxxx/Plugins/cordova-plugin-xxxxxx/lib1xxxxxx.a’;
:x: clang: error: linker command failed with exit code 1 (use -v to see invocation)

P.S. the project compiles without problems with Xcode