Hemant Sabale
Hemant Sabale

Reputation: 327

Lib tool not able to create archive

I am using libBilldesk.a library in my project for payment option. As I am using TPKeyboarAvoidingScrollView file in my project and also same file exist in libBilldesk.a static library because of which I am getting duplicate symbol error at compile time. So to resolve this issue I am trying to remove TPKeyboarAvoidingScrollView.o file from libBilldesk file.

But I am getting following error message on terminal error:

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: unknown option character `o' in: -output

Please help me to resolve this issue.

Upvotes: 1

Views: 79

Answers (1)

clemens
clemens

Reputation: 17722

The correct parameter for the output file is -o instead of -output:

libtool -static -o ../libBilldesk-arm64.a *.o 

See manpage of libtoolfor details.

Upvotes: 1

Related Questions