• iOS中使用RegexKitLite来试用正则表达式 使用ARC 20个错误解决办法


    You can also disable the ARC for the RegexKitLite only by adding a flag:

    select the project -> YOUR Target -> on the Tab the "Build Phases" and open the "Compile Sources" and add for "RegexKitLite.m" the flag "-fno-objc-arc".

     我还是不理解,不过成功了就行。。。
     
    RegexKitLite下载导入项目之后编译提示错误。错误如下
     
     
    Undefined symbols for architecture i386:
      "_uregex_open", referenced from:
          _rkl_getCachedRegex in RegexKitLite.o
      "_uregex_groupCount", referenced from:
          _rkl_getCachedRegex in RegexKitLite.o
      "_uregex_setText", referenced from:
          _rkl_setCachedRegexToString in RegexKitLite.o
          _rkl_clearCachedRegexSetTo in RegexKitLite.o
          -[RKLBlockEnumerationHelper initWithRegex:options:string:range:error:] in RegexKitLite.o
      "_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_find", referenced from:
          _rkl_search in RegexKitLite.o
      "_uregex_findNext", referenced from:
          _rkl_search in RegexKitLite.o
          _rkl_replaceAll 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_close", referenced from:
          _rkl_clearCachedRegex in RegexKitLite.o
      "_u_errorName", referenced from:
          _rkl_userInfoDictionary in RegexKitLite.o
          _rkl_makeNSError in RegexKitLite.o
          _rkl_NSExceptionForRegex in RegexKitLite.o
      "_u_strlen", referenced from:
          _rkl_userInfoDictionary in RegexKitLite.o
      "_uregex_clone", referenced from:
          -[RKLBlockEnumerationHelper initWithRegex:options:string:range:error:] in RegexKitLite.o
    ld: symbol(s) not found for architecture i386
    collect2: ld returned 1 exit status
    解决办法:
    In project setting search "other" at Other Linker Flags put the word "-licucore".
    编译设置的Other Linker Flags中添加“-licucore”
     
    引用地址:
    http://www.iphonedevsdk.com/forum/iphone-sdk-development/8584-regexkitlite-wouldnt-compile.html
  • 相关阅读:
    分析一个文本文件(英文文章)中各个词出现的频率,并且把频率最高的10个词打印出来
    求一个数组中的最大整数
    一个统计文本文件中各个英文单词出现频率的问题,并且输出频率最高的10个词
    Python学习一:基础语法
    Spring学习之二
    Spring学习之装配Bean
    Spring学习一
    缓存之ehcache
    解决axios传递参数后台无法接收问题
    服务端解决跨域问题
  • 原文地址:https://www.cnblogs.com/guangleijia/p/5013289.html
Copyright © 2020-2023  润新知