在我的一个iphone项目中,我使用RegexLiteKit在mapview中绘制路径.在编译以下故障时,
Undefined symbols for architecture i386:
"_uregex_start", referenced from:
_rkl_performRegexOp in RegexKitLite.o
_rkl_search in RegexKitLite.o
_rkl_findRanges in RegexKitLite.o
"_uregex_end", referenced from:
_rkl_performRegexOp in RegexKitLite.o
_rkl_search in RegexKitLite.o
_rkl_findRanges in RegexKitLite.o
"_uregex_setText", referenced from:
_rkl_clearCacheSlotSetTo in RegexKitLite.o
_rkl_setCacheSlotToString in RegexKitLite.o
"_uregex_find", referenced from:
_rkl_search in RegexKitLite.o
"_uregex_findNext", referenced from:
_rkl_search in RegexKitLite.o
_rkl_replaceAll in RegexKitLite.o
"_u_errorName", referenced from:
_rkl_NSExceptionForRegex in RegexKitLite.o
_rkl_userInfoDictionary in RegexKitLite.o
"_u_strlen", referenced from:
_rkl_userInfoDictionary in RegexKitLite.o
"_uregex_reset", referenced from:
_rkl_replaceAll in RegexKitLite.o
"_uregex_appendReplacement", referenced from:
_rkl_replaceAll in RegexKitLite.o
"_uregex_appendTail", referenced from:
_rkl_replaceAll in RegexKitLite.o
"_uregex_open", referenced from:
_rkl_getCachedRegex in RegexKitLite.o
"_uregex_groupCount", referenced from:
_rkl_getCachedRegex in RegexKitLite.o
"_uregex_close", referenced from:
_rkl_clearCacheSlotRegex in RegexKitLite.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Run Code Online (Sandbox Code Playgroud)
有没有办法使RegexLiteKit工作?请帮忙..
SUR*_*NKE 14
libicucore框架添加到项目中解决这个问题,以供参考通过这个链接http://www.mobisoftinfotech.com/blog/iphone/iphone-regular-expression-tutorial-regexkitlite-framework/
您需要在下面设置链接器标志是执行相同操作的步骤.转到Build Settings-> Linking-> Other Linker Flags - > -licucore
不要忘记添加-上面的licucore