How to resolve a binding error - static lib iPhone

I tried to create a static lib on my iPhone, but I cannot use it in another project. I get this error:

.objc_class_name_XMLParser", referenced from:
      literal-pointer@__OBJC@__cls_refs@XMLParser in Minutes2MidnightViewController.o
  ".objc_class_name_TickerViewController", referenced from:
      literal-pointer@__OBJC@__cls_refs@TickerViewController in Minutes2MidnightViewController.o
ld: symbol(s) not found
collect2: ld returned 1 exit status

XMLand Tickerare my classes, I use them in static lib, and "MinutesToMidnight"is a project in which I use this static Lib. I think this is due to Linker error, please help me solve this problem.

+3
source share
1 answer

If you cross-reference a static lib project, you must drag the icon of your library from your project group to the target group "Link binary with libraries".

" " Xcode .

. iPhone.

+3

Source: https://habr.com/ru/post/1712646/


All Articles