iOS之Undefined symbols for architecture armv7问题解决方法

我们在编译代码时,常常出来下面这样的错误

  Undefined symbols for architecture armv7:
      "_uregex_end", referenced from:
      _rkl_performRegexOp in RegexKitLite.o
      _rkl_search in RegexKitLite.o
      _rkl_findRanges in RegexKitLite.o
     "_uregex_appendReplacement", referenced from:
      _rkl_replaceAll in RegexKitLite.o
     "_uregex_groupCount", referenced from:
     _rkl_getCachedRegex in RegexKitLite.o
     "_uregex_appendTail", referenced from:
     _rkl_replaceAll in RegexKitLite.o
     "_u_strlen", referenced from:
    _rkl_userInfoDictionary in RegexKitLite.o
     "_uregex_reset", referenced from:
    _rkl_replaceAll in RegexKitLite.o
     "_uregex_close", referenced from:
    _rkl_clearCacheSlotRegex in RegexKitLite.o
     "_u_errorName", referenced from:
   _rkl_NSExceptionForRegex in RegexKitLite.o
   _rkl_userInfoDictionary in RegexKitLite.o
    "_uregex_findNext", referenced from:
   _rkl_search in RegexKitLite.o
   _rkl_replaceAll in RegexKitLite.o
    "_uregex_setText", referenced from:
   _rkl_clearCacheSlotSetTo in RegexKitLite.o
   _rkl_setCacheSlotToString in RegexKitLite.o
   "_uregex_start", referenced from:
  _rkl_performRegexOp in RegexKitLite.o
  _rkl_search in RegexKitLite.o
  _rkl_findRanges in RegexKitLite.o
   "_uregex_open", referenced from:
   _rkl_getCachedRegex in RegexKitLite.o
  "_uregex_find", referenced from:
   _rkl_search in RegexKitLite.o
   ld: symbol(s) not found for architecture armv7
  clang: error: linker command failed with exit code 1 (use -v to see invocation)

解决方法:

"Build Settings"->"Linking"->"Other Linker Flags" add the flag as "-licucore"


你可能感兴趣的:(iOS常见错误)