Set .a library in Custom Module module.xcconfig

You must Login before you can answer or comment on any questions.

I have to include a .a library that my custom module will use. I'm doing it setting the module.xcconfig like this: OTHER_LDFLAGS=$(inherited) /Users/erangel/Desktop/lib/lib.a

It works just fine on the simulator, but not on the device. I don't know if that's because lib.a is outside the project, or something else.

1) Does lib.a have to be on the Titanium project folder? Or maybe on the modulefolder? Where exactly?

2) How do I call lib.a from module.xcconfig? /lib.a? /someProjectFolder/lib.a?

Thanks!

— asked 1 year ago by Eduardo Rangel
1 Comment
  • Hello,

    can you please copy your lib.a to the same level to the module.xcconfig file in your module.

    Let me know how it goes.

    Best,

    Mauro

    — commented 1 year ago by Mauro Parra

2 Answers

as your situation you should write OTHER_LDFLAGS=$(inherited) -F{HOME}/Desktop/lib/

I have this exact same issue and have not been able to get this to work. I've looked at the guide and this situation is different than what is in the guide.

I've tried the -F option and have had no success.

Your Answer

Think you can help? Login to answer this question!